Some people asked me about pagination of custom post type. That is very easy. For showing the custom post type we always use the query_post method. Just use the following code in your template or theme file. Have fun! Incoming … Continue reading
Category Archives: wordpress tutorials
How to remove first image from wordpress post with caption if caption is present
I struggled lot for this issue. Some times I only removed the first image. some times I removed first caption. I used the following code for first image removing. But I faced the some issues with that code. When first … Continue reading
wordpress pagination with query_posts
Mostly people use the query_posts function for fetching the specific posts. But most of all people face issue with pagination. Just use following code for pagination. It is simple and easy. Incoming search terms:wordpress 3 3 query_postswp_simple_pagination wp_queryajex pagination plugins … Continue reading
How to show some posts to only registered users in wordpress
Some people want to show selected posts to only registered users in site. You can easily achieve this. You just need to create public and private category and publish your selected posts in private category. Use the following code in index.php … Continue reading
Show the posts that were tagged with a some keywords
We can show the five posts with certain tags. We can use following code for showing the posts. Just use the following code.
Limit excerpt length by characters in wordpress
I already written about this in following article. But some people need the more advanced excerpt. http://wordpressapi.com/2010/08/11/set-wordpress-post-excerpt-length-limited-characters/ First open your functions.php file and put following code in that file. Use this function if you’re planning on using it more than … Continue reading
How to create the breadcrumbs in wordpress
In many sits we need to show the breadcrumbs in site. For pages and category we can create the breadcrumbs. We need to put following code in functions.php file. After that put following code in header.php file. After putting above … Continue reading
create custom post type with permalink
Here I am creating the Product post type with permalink. Please open the functions.php file and put following code in that file. If you have any issues or problem with permalink then please write to me. Incoming search terms:post_type permalinkwordpress … Continue reading
Add the Comment Preview to Comment box without WordPress Plugin
Many times comments preview will be useful for visitors to see how comments will be looking. Using google Jquery or wordpress jquery you can add the comment preview to your wordpress blog. In this tutorial I am using the wordpress … Continue reading
Create an Ajax-based Auto complete Search Field in wordpress
Now auto complete search box is very common for every web projects. Auto complete search functionality you can see in google also. In wordpress also you can easily achieve the auto complete search form easily. There is very nice Jquery … Continue reading









