Custom post type are very important in wordpress. There are some nice plugins for creating the post type but I recommend custom code in function.php file. I already written about custom post type. If you want to know about custom … Continue reading
Tag Archives: code
how to display post count of all wordpress tags
In wordpress post we use the many post tags. For SEO purpose we can show the post tags. If we want to show the post count related to wordpress tags. You can use following code: Incoming search terms:wordpress count posts … Continue reading
Share and Enjoy
How to List the child pages by post slug OR post ID
First find the page id using page title or page page slug. For post title use following code: For post slug use following code: Now List the child page by post slug
Share and Enjoy
WP_Query vs query_posts() vs get_posts()
There are three ways for fetching data(posts) from wordpress. Programmers love to use query_posts more often then others. But I prefer to use WP_Query(). WP_Query is object base more secure then others. query_posts() is overly simplistic and problematic way to … Continue reading
Share and Enjoy
Send email through wp_mail in html format with wordpress
In wordpress we use the wp_mail function for sending email. Following parameters we use for wp_mail Parameters Simple example: We can use this code for contact form or in functions.php file For html format email from wordpress. we just need … Continue reading
Share and Enjoy
enable the comments for custom post type
In wordpress we can create the custom post types. For enabling the comments for custom post type just use the following line. Following line will add the title, thumbnail, excerpt and comments functionality to your custom post type. For more … Continue reading
Share and Enjoy
Future of PSD to WordPress Conversion
PSD is the design layout made in Photoshop, which needs to be converted as PSD files cannot be launch in any browser. In such scenario PSD to WordPress conversion gives a lot of advantages like easy to update, install and … Continue reading
Share and Enjoy
JavaScript/CSS Compression
Many times we are searching for Javascript and css compression. Few days before i was searching for Jquery JS library compression. Yes there is compressed version available but i want to make some changes in JS files as per my … Continue reading
Share and Enjoy
code syntax highlighting through wordpress plugin
When ever we write some code in post. That code need to visible very easily. There are some useful wordpress plugins for highlighting the code in wordpress post. While WordPress.com doesn’t allow you to use potentially dangerous code on your … Continue reading






