• Home
  • About me
  • Gallery
  • WordPress
  • Life
  • Contact us

Laxman Prajapati

~ WordPress Blog

Laxman Prajapati

Monthly Archives: April 2014

Future

28 Monday Apr 2014

Posted by Laxman Prajapati in Positive

≈ 2 Comments

Tags

Future

glorious_future-wide

Advertisement

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Increase Chances of Success

24 Thursday Apr 2014

Posted by Laxman Prajapati in Goal, Life

≈ 4 Comments

Tags

increase-chances-of-success

IVF-Success-300x198

Did you know that you can increase chances of success by consciously choosing the right words? It’s true! Let’s say you’re motivated, excited even, to create change in your life. You’ve even gone so far as to put your well-formed goals down in writing. From there, you’ve determined your first steps to begin the process of changing your eating habits and exercising more. You’ve got enormous enthusiasm and know exactly what it is you’ re going to do. You choose your goal tomorrow, and then inadvertently cripple your success before you even start. You say, ” I’ll try.”

increase chances of success What does “I’ll try” mean? It means you’ve given yourself an out. Should some obstacle surface, you now have a built-in escape route that gets you off the hook. The word presupposes failure. It lacks intention and confidence. You are sowing doubt in your own mind. It says, “Alright, I’ll give it a go, but I can’t really see it working out.”
Now observe what is feels like to sat “I am”. For example, “I am now committed to feeling good by honoring my decision to walk 20 minutes today.” If it doesn’t feel right, then you’ve selected a goal that is something other than your natural first step. Back up and find the action step you are ready to undertake. It doesn’t matter how small and insignificant it may seem at the time. You’ re better off starting with something teeny- tiny and achieving success, than starting with something you already know you’ re not ready for. The wise Lao-Tzu once started, “A journey of a thousand miles must begin with a single step.” Make sure you are able to complete your first step.

Success-principles-education-through-leadership

Perhaps having revised your initial starting point, again notice what it feel like to say, “I am now”. This phrase directs you and says that you have power and intention. It says that you believe in what you are saying and you will find a way to make it happen. You’ve made a commitment to yourself that you’ve chosen to honor. It says that you will find a way to get it done even if things get in the way. It means that even if difficulties pop up, you’ll find some way to stick to your intent.

increase chances of success
Once you find a plan of action that seems doable, forget trying to do it. To try to do something is to not do it. Instead, declare whole-heartedly, “I am now achieving this!”

Make your success inevitable.

http://www.goal-setting-for-success.com/increase-chances-of-success.html

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Family Values

23 Wednesday Apr 2014

Posted by Laxman Prajapati in Family, Life, Love

≈ 7 Comments

Tags

Family Values

Family is not just a word. It’s who you are, where you came from and where you will always belong.

family-values-

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Thank you very much for all my visitors and followers

21 Monday Apr 2014

Posted by Laxman Prajapati in WordPress

≈ 2 Comments

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Add Custom Pagination in Blog Page

19 Saturday Apr 2014

Posted by Laxman Prajapati in WordPress

≈ 2 Comments

Tags

custom pagination, pagination

examples-of-wordpress-custom-comment-pagination

str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'show_all' => False, 'end_size' => 1, 'mid_size' => 5, 'prev_next' => True, 'prev_text' => __('PREV'), 'next_text' => __('NEXT'), 'type' => 'plain', 'add_args' => False, 'add_fragment' => '' ) ); ?>

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Custome Post Type And Custom Taxonomy Type In WordPress

18 Friday Apr 2014

Posted by Laxman Prajapati in WordPress

≈ 6 Comments

Tags

Custome Post Type And Custom Taxonomy Type

 
/*  Custome Post Type */

add_action( 'init', 'wp_product' );
function wp_product() {
	register_post_type( 'wp_product',
		array(
			'labels' => array(
				'name' => __( 'WP Catalogue' ),
				'singular_name' => __( 'Product' ),
				'search_items' =>  __( 'Search Product' ),
				'parent_item' => __( 'Parent Product' ),
				'parent_item_colon' => __( 'Parent Product:' ),
				'edit_item' => __( 'Edit Product' ),
				'update_item' => __( 'Update Product' ),
				'add_new_item' => __( 'Add New Product' ),
				'new_item_name' => __( 'New Product Name' ),
				
			),
			'public' => true,
			'has_archive' => true,
			'rewrite' => array('slug' => 'products'),
                        'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'comments' ),
		)
	);
}

/*------------------------------------------------------------------------------------------------------*/

 /*  Custome Taxonomy Type */

function add_product_taxonomies() {

	register_taxonomy('p_category', 'wp_product', array(
		// Hierarchical taxonomy (like categories)
		'hierarchical' => true,
		// This array of options controls the labels displayed in the WordPress Admin UI
		'labels' => array(
			'name' => _x( 'Product Category', 'taxonomy general name' ),
			'singular_name' => _x( 'Category', 'taxonomy singular name' ),
			'search_items' =>  __( 'Search Categories' ),
			'all_items' => __( 'All Categories' ),
			'parent_item' => __( 'Parent Categories' ),
			'parent_item_colon' => __( 'Parent Categories:' ),
			'edit_item' => __( 'Edit Categories' ),
			'update_item' => __( 'Update Categories' ),
			'add_new_item' => __( 'Add New Categories' ),
			'new_item_name' => __( 'New Categories Name' ),
			'menu_name' => __( 'Categories' ),
		),

		// Control the slugs used for this taxonomy
		'rewrite' => array(
			'slug' => 'p_category', // This controls the base slug that will display before each term
			'with_front' => false, // Don't display the category base before "/locations/"
			'hierarchical' => true // This will allow URL's like "/locations/boston/cambridge/"
		),
	));
}
add_action( 'init', 'add_product_taxonomies', 0 ); 

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Beautiful “Flower Love”

17 Thursday Apr 2014

Posted by Laxman Prajapati in Flower, Love

≈ 7 Comments

Tags

Beautiful "Flower Love", Flower Love

red-love-flowers1
general
flower_with_love_218559535

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Php Interview Question

15 Tuesday Apr 2014

Posted by Laxman Prajapati in PHP

≈ 2 Comments

Tags

Php Interview Question

http://rayhanamisty.wordpress.com/2014/03/23/php-interview-question/

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

How to submit a form using AJAX

14 Monday Apr 2014

Posted by Laxman Prajapati in WordPress

≈ 12 Comments

Tags

How to submit a form using AJAX

Universal Coder

This is a Registration.php file

In This file Simple create registration form and submit by using AJAX

<!DOCTYPE html>
<html>
<head>
http://code.jquery.com/jquery-1.9.1.js
http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
<script>
$(document).ready(function(){
$('#myForm').on('submit',function(event) {
$.ajax({
url:'success.php',          //target file
data:$(this).serialize(),    //translate data structure and object
type:'POST',
success:function(data){

console.log(data);
$("#success").show();       // Show Success Message==
},
error:function(data){

$("#error").show().fadeOut(5000);   //===Show Error Message====
}
});
event.preventDefault();         //To Avoid Page Refresh and Fire the Event "Click"
});
});
</script>

</head>
<body>
<h2 >Registration Form</h2>

<table align:center>
<form id="myForm" method="POST" action="" >
<tr>
<tr><td>Name :</td><td><input type="text" name="name" required></td></tr>
<tr><td>SarName :</td><td><input type="text" name="sarname" required></td></tr>
<tr><td>Birthday :</td><td><input type="date" name="bday" required></td></tr>
<tr><td>E-mail :</td><td><input type="email" name="email" required></td></tr>
<tr><td>Password :</td><td><input type="password" name="password" required></td></tr>
<tr><td>re-Password :</td><td><input type="password" name="passward" required></td></tr>
<tr><td><button type="submit" name="submit" id="submit">submit</button></td> </tr>
</tr>
<span id="error" style="display:none; color:#F00">Some Error!Please Fill form Properly </span>

<span id="success" style="display:none; color:#0C0">All the records are submitted!</span>
</form>
</table>

<?php ?>
</body>

</html>

This is success.php…

View original post 100 more words

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

How to add custom Javascript in WordPress

13 Sunday Apr 2014

Posted by Laxman Prajapati in WordPress

≈ 2 Comments

Tags

add js in wp, How to add custom Javascript in WordPress

Copy this line and add in your theme header.php file.
Path : projectname/wp-content/themes/yourtheme/header.php

<script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/js/script.js"></script>

File

Add the script.js file here :
projectname/wp-content/themes/yourtheme/js/script.js

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

How to add custom css in WordPress

12 Saturday Apr 2014

Posted by Laxman Prajapati in WordPress

≈ 3 Comments

Tags

add css in wp, add custom css, wordpress css

Copy this line and add in your theme header.php file.
Path : projectname/wp-content/themes/yourtheme/header.php

<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/style/media.css" media="screen" />

custome

File

Add the media.css file here :
projectname/wp-content/themes/yourtheme/style/media.css

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Display Most Popular Posts without plugin

11 Friday Apr 2014

Posted by Laxman Prajapati in WordPress

≈ 2 Comments

Tags

Display Most Popular Posts, most popular post

<?php
	query_posts('meta_key=post_views_count&orderby=meta_value_num&order=DESC');
	if (have_posts()) : while (have_posts()) : the_post(); ?>
	<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
	<?php
	endwhile; endif;
	wp_reset_query();
?>

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Display Random posts in WordPress

10 Thursday Apr 2014

Posted by Laxman Prajapati in Blog, WordPress

≈ 4 Comments

Tags

get post, Random posts, wordpress post

Display a list of 5 posts selected randomly by using the MySQL RAND() function for the orderby parameter value:

<ul>
<?php
$args = array( 'posts_per_page' => 5, 'orderby' => 'rand' );
$rand_posts = get_posts( $args );
foreach ( $rand_posts as $post ) : 
  setup_postdata( $post ); ?>
	<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; 
wp_reset_postdata(); ?>
</ul>

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Basic WordPress Method

09 Wednesday Apr 2014

Posted by Laxman Prajapati in WordPress

≈ 4 Comments

Universal Coder

Display Post URL as  Link Text
<?php the_permalink(); ?>

For Homepage Url

<?php bloginfo('url'); ?>

For Image Source Or File Path

<?php bloginfo('template_directory'); ?>/folder-name/

For Get Header Menu

<?php wp_nav_menu('Menu=headermenu' ); ?>

For Get Footer Menu

<?php wp_nav_menu( array('menu' => 'footermenu' )); ?>

Make The “Read More” Link To The Post
Place this in a theme’s functions.php to make the “read more” link to the post

function new_excerpt_more( $more ) {
	return ' <a href="'. get_permalink( get_the_ID() ) . '">Read More</a>';
}
add_filter( 'excerpt_more', 'new_excerpt_more' );

For More Information

View original post

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...

Common steps to write a WordPress Plugin

09 Wednesday Apr 2014

Posted by Laxman Prajapati in WordPress

≈ Leave a comment

PHP Technology Tutorials

  1. Create a php file which name same as plugin name.
  2.  Add Standard Plugin header information in top of the file. This header information help wordpress to active ,load plugin and run its functionality. Without header information your plugin will never run and work in WordPress.
  3.  Write plugin code logic in file. Add plugin code for action and filters.
  4. Add admin panel for your plugin. this step is not neccessory but useful when you have plugin setting and want to save and retrive plugin settings from database.
  5. Plugin is ready to use in WordPress.

View original post

Rate this:

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Email
  • Print

Like this:

Like Loading...
← Older posts
Follow Laxman Prajapati on WordPress.com

About Me

Laxman Prajapati

Laxman Prajapati

Have to lose something to gain something

View Full Profile →

Total Blog Hits

  • 29,568 Views

Fish

Calendar

April 2014
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  
« Mar   May »

Logo

wordpress-logo-stacked-rgb

Category

Animal Anniversary birthday Blog BuddyPress Family Flower Friends Goal Google Happiness Happy new year Health Independence Day Life Love Mind Fresh Natural PHP Positive Republic Day WordPress

Blogs I Follow

Success Life

“Success is not final, failure is not fatal: it is the courage to continue that counts.” ― Winston Churchill
“If at first you don't succeed, try, try again. Then quit. No use being a damn fool about it.” ― W. C. Fields
“Nearly all men can stand adversity, but if you want to test a man's character, give him power.” ― Abraham Lincoln
“Success is most often achieved by those who don't know that failure is inevitable.” ― Coco Chanel

Recent Posts

  • How to increase WordPress website speed without a plugin
  • How to install Twnety Twenty theme on WordPress Website?
  • How to download PDF file using WordPress codex
  • New Gallery Widget in WordPress 4.9
  • Template Hierarchy
  • WordPress Work Sheet
  • Merry Christmas
  • #SRK

Category

Animal Anniversary birthday Blog BuddyPress Family Flower Friends Goal Google Happiness Happy new year Health Independence Day Life Love Mind Fresh Natural PHP Positive Republic Day WordPress

Gallery

success2
tree_success
succaess
success
success
15_5_orig
success-secrets-1
sucscess
success-1

Create a free website or blog at WordPress.com.

Tianu Gujarati Blog - Anurag Rathod

જેને કશું કામ કરવા ના હોય એ નવરો બેઠો બેઠો બ્લોગ લખે.

WordCamp Ahmedabad 2019 a.k.a 3.0

#WCAhmedabad

Hinal Sanghvi

Hinal Sanghvi

WordPress Educator Zac Gordon

A Blog for Tutorials, Free Videos, and Updates on Courses, Talks and Workshops

seenu625

love nature, and all things creative

Hello Beautiful Book Blog

beautiful nerdy bookish things

How Useful It Is

Trying to be Useful, one post at a time!

vlandaman.wordpress.com/

On Becoming Fearless

Dreaming, believing, learning then achieving

Dil Ki Kitaab ( दिल की किताब )

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Laxman Prajapati
    • Join 440 other followers
    • Already have a WordPress.com account? Log in now.
    • Laxman Prajapati
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    %d bloggers like this: