post

a minute read
WordPress featured thumbnails allow you to add a featured image to your posts. If your WordPress theme has this functionality, then you may set a featured thumbnail to your post by using the Featured Image meta box by clicking the Set Featured image link and uploading your image. The featured thumbnails generally appear in the index pages of your blog along with post body (or excerpt). Featured Image meta box in WordPress Dashboard But in case when you publish posts frequently and forget settin...
a minute read
Although WordPress traditional search doesn’t provide search quality as good as Google Custom Search, however many WordPress users still use it, as it is the default search and you don’t need to customize your theme to add search feature on your blog. Recently, a friend of mine asked me about redirecting to a post when search results have only one item. Such needs may differ from site to site, it all depends on your audience and what features you want to add to your site for their ease. In t...
2 minutes read
WordPress automatically adds paragraph tags (<p>) in the posts wherever it notices double line-breaks. For example, if you write one line and press the return key twice, it considers you want to add a paragraph there, and then suitable tags will be added when you publish or preview the post. You don’t see the tags added in the post editor, but they will show up in the markup when you view the source of your post. The same thing happens with the WordPress image captions when your inser...
a few seconds read
There may arise a need when developers want to hide the Visual editor aka WYSIWYG Editor from their Post types. If such is the case, you should just implement the following code in the functions.php file of your theme OR in the plugin files if you have a plugin installed to set up CPTs: add_filter('user_can_richedit', 'disable_wysiwyg_for_CPT'); function disable_wyswyg_for_CPT($default) {   global $post;   if ('movie' == get_post_type($post))     return false;  ...