Many times we use the custom post type in wordpress. Some times we need to category and tags for custom post type which are only associated. you can use the following code in funcations.php file. Please consult with your developer. … Continue reading
change permalinks as per your choice in wordpress using post_link filter
WordPress publishing URL you can change to anything using following function. Following wordpress hook is very important. You can publish article with different URL or domain also. Using your blog you can publish your article to another URL also. You … Continue reading
Solved for WordPress old and new versions – PHP Fatal error: Allowed memory size of 33554432 bytes exhausted
We got always following ERROR PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10485761 bytes) in This issue with old and new wordpress versions both. First you need to increase memory limit for your php … Continue reading
solved: pagination for Custom post type not working
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!
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.
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









