Add Private Notes WordPress Blog Posts

Add Private Notes WordPress Blog Posts

If you would like to add private notes to your posts that will only be visible to authors of your blog, simply add this function to your theme’s functions.php file which will create a shortcode [note] so that you can add notes for authors by including them in [note] and [/note] while writing the post.…

Disable HTML in WordPress Comments

Disable HTML

WordPress allows some HTML tags like <a>, <em>, <strong> within comment text. But if you would like to disable HTML feature on your blog to prevent users from adding any HTML content within comment text, add this function to your theme’s functions.php file. This will treat the HTML content within comment text as literals and…

Create Post Only for RSS Subscribers

Post Only for RSS Subscribers

If you would like to give an exclusive offer to your regular RSS subscribers, here’s a nice trick to Post Only for RSS Subscribers. First of all, create a category that will hold posts to show to your RSS subscribers. For example, create a category ‘RSS’ and add some posts exclusively to it. Note down…

Add Custom Read More Function WordPress

Custom Read More Function In WordPress

Custom Read More Function in WordPress are very useful for illustration a web site. It is not only helpful but also save time. Suppose you have a website and you design it at various styles such as 2 column pages, 3 column page, single page, portfolio page, author page etc. Now you need to change…

Add Custom Styles in WordPress TinyMCE Editor

WordPress TinyMCE editor

Adding custom styles to WordPress TinyMCE editor is very easy. But before styling your TinyMCE editor you should know about WordPress post editor. WordPress TinyMCE editor There are two modes of editing: Visual and Text. Choose the mode by clicking on the appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon…

Add Custom Colors in WP Editors

Add Custom Colors in WP Editors

How to add custom colors in WP editors color picker? Is it possible to add more colors in WordPress editor color picker? Yes it is possible to add more and more color in WordPress editor color picker. This short snippet will add three colors (#15375c, #3366FF and #9fb83f) to color picker of WordPress editor. It’s…

Use Shortcodes Within WordPress Text Widget

Shortcodes Within WordPress

Some days ago I shared a tip on using PHP snippets within WordPress text Widgets. Here’s another equally handy snippet for using Shortcodes within WordPress text widget. To allow shortcodes within WordPress text widgets, simply edit the functions.php file from your theme and add the following code Shortcodes Within WordPress snippets add_filter(‘widget_text’, ‘do_shortcode’); Once you…

Embed Google Books in Your Posts Using Shortcode

Embed google books

Many learners want to collect book from Google books. So you can embed Google books in your posts using shortcode in your WordPress site very easily. Especially some clients give task to their web developer to display Book from Google book. You can display this Google book by using WordPress plugin. But some clients want to avoid…

How to Access Post Data Outside Loop

Post Data Outside Loop

The easiest way to display and access  post data outside loop is to use the built-in WordPress core function get_post(); However, for more control over the process, check out this nifty little function from WP Recipes: function get_post_data($postId) { global $wpdb; return $wpdb->get_row(“SELECT * FROM $wpdb->posts WHERE ID=$postId”); } Place this function in your functions.php and…