Temporarily Disable New Comments WordPress Blog

Disable New Comments

If you want to disable new comments form in your Comments file in your template. To do this, go to “Presentation>Theme Editor” then edit the Comments.php file. Find the part in the file that looks like this (it is probably slightly different, depending on what theme you’re using): Disable New Comments Tricks <?php if (‘open’…

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.…

Display WordPress Tags in a List

WordPress tags

How to display WordPress tags in a list without using plugins? Yes you can do this easily simply follow this tutorial and collect this small snippets for next time use. To display a list of WordPress tags simply add the below snippets where you want to display. <?php $tags = get_tags(); if ($tags) {?>   …

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…

Disable WordPress Plugin Update Notification

Disable WordPress Plugin Update

How often do you log in to the admin area of your WordPress site and see a notification that one of your plugins has a newer version ready to update to? If you have more than a few installed, you’re probably familiar with these messages. If you ignore these updates, the notifications can pile up…

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 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…

Get Category Name by ID WordPress

Category name by id

If you want to create a newspaper site or blog site like newspaper you need to display post base on category. Here I will add a WordPress snippets which will display category name by ID. Get Category name by id <?php echo get_cat_name(4);?> Here get_cat_name(4) is my Selected Category ID. Please Change  4 With your…