Some time we shows the posts and there comments in sidebar. But what to do for show the comments for custom post type. It’s not well documented, but according to the codex, you can pass a ‘post_type’ variable in the … Continue reading
Monthly Archives: January 2012
How to include the jquery-ui in wordpress
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
Change uploaded image name to post slug during upload using variables
If you want to rename files during upload and set their names to the post slug the files are beeing attached to, plus some random characters (a simple incremental counter will de just fine) to make the filenames different. In … Continue reading
Solved: qTranslate slug with Widget not working with pages
We just saw the issue with qtranslate slug with widget is not working for 0.5 version. URL is showing but URL is not opening and 404 page is opening. The problem was exactly at the function qTranslateSlug_filter_request inside de file … Continue reading
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




