Short Codes – the way to solve small issues in your WordPress blog. While there are plenty of plugins available out there to help you out with numerous small and big WordPress roles but sometimes and sometimes even more often using the short codes will help you out more. In this article, we present the second part of three-part series of WordPress Snippets Collection.
Copy and paste the following code into the functions.php file and once you are done, open your single.php file and call the function using the second code below.
// The arguments of the post list!
// Let's start the loop!
// If there are no posts, we should return something, too!
Copy the code below and paste it on your functions.php file.
Adding the code to your functions.php file will automatically mark as spam all comments with an url longer than 50 chars.
Simply paste the following code into your function.php file, where you generally enqueue scripts and styles.
Simply add the code below to functions.php in your WordPress theme.
Paste the following code into your functions.php file.
Adding the following code anywhere on your theme files will return true if you’re on a comment page.
Just paste the code below into your functions.php file, save it, and you’re done.
Paste the following code snippet into your functions.php file.
Adding the code into your functions.php file will let authors only see their own posts in the admin post list.
Paste the following code on any PHP file where you want to run your WordPress loop.
Simply paste the following code in your functions.php file.
Simply paste the following function where you want your counter to appear.