6 Useful Code Snippets for WordPress

In this article, we would like to present you with six useful code snippets that will enhance your WordPress website. Members Only Content Shortcode This shortcode allows you to write a private content in a post.¬†For non-members, the login form will appear. Add the following function to your functions.php file. function member( $atts, $content = […Read More]

How to Display a Disclaimer on Old WordPress Posts

It can be a good idea to display a warning to your visitors stating that they are currently reading an old post which might not be up to date. This code snippet will display warning on posts that are older then one year (365 days). Paste the following code in your single.php file, within the […Read More]

8 Useful Code Snippets for WordPress

A WordPress code snippet is a small block of reusable code that you can use to extend the functionality of a WordPress-powered website; it is essentially a mini-plugin with less code. WordPress code snippets can be used in different ways. Most of the time this involves going to the functions.php file, but you might want […Read More]

Analytics Made Easy - StatCounter
scroll to top