When you enqueue your script, it enqueues for the whole site including admin panel. If you don’t want the script in the admin panel, you can only include them for the site in frontend. This following code you need to … Continue reading
Category Archives: wordpress tutorials
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
how to integrate the wordpress with php or html
WordPress is very easy to work on. you can very easily integrate the wordpress with php or html site. There may be only a few features of WordPress you want to use when integrating it with your site, or 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! Incoming … Continue reading
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_postswordpress api paginationquery_posts paginationquery_posts … 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. Incoming search terms:qtranslate html bugforeach ($postslist as $post) pot titlewordpress /&ei=wordpress add keyword for post api
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









