Paste this code in your custom functions plugin, themes functions.php file or Must Use plugin. [code] add_action( 'admin_menu',
WordPress Tips
You've landed on the archives page for posts filed under the WordPress Tips category.
Here you'll find useful tips and tutorials to help solve common problems and build a better WordPress site.
How To Enable Shortlinks In WordPress
By default, the Get Shortlinks button next to your permalink URL on the Edit Post/Page screen is hidden. You can enable it by adding this
How To Add OR Remove CSS Classes For Specific Widgets In WordPress
This PHP code enables you to add a CSS class to any WordPress or Genesis widget by way of your child themes functions file. This way, your
Only Show Specific Pages or Posts On Home Page
This code enables you to select which single pages you want displayed on the front page of your WordPress site. It excludes all posts and
Disable Connection To WordPress.org On Local Installation
Speed up your local installation by disabling the connection to wordpress.org's server. [code] add_filter( 'pre_http_request',
Load Template File Conditionally
This code loads the template file named featured.php from the child themes root directory. You can use the code in your child themes
Remove All HTML Tags From Comment Content Text In WordPress
A premium user asked how to remove links from comments which is the reason for publishing this code. Add the following PHP code to your
Add Custom Read More Link To Excerpts
The code in this tutorial enables you to do 2 things : You can control the length of the excerpt Add a custom read more link to
Return Search Results After A Specific Date
If you want to exclude older posts from your search results, you can using pre_get_posts. The following code uses the date_query from
No Follow WordPress Tag Cloud Widget Links
This code, once added to your child themes functions file, adds rel="nofollow" to all the tag cloud links generated by the tac cloud widget
Customize WordPress Tag Cloud Widget Functionality
This code enables you to modify the default functionality for the WordPress tag cloud widget. You'll find the tag cloud widget by going to
Add Unique Featured Image For Sumome Social Sharing
The code in this tutorial enables you to upload or select from your media library, a different (2nd) featured image which is used when you
Add WP Editor To Page Template
This code enables you to add a 2nd editor to any page template or any/all edit screens in WordPress. All you need to do is add code to print
Install Font Awesome Icons In Genesis
Before you install font awesome, consider using dashicons which are already included in WordPress so you only need to load
How To Redirect 1 Page
There's at least 5 ways to redirect 1 page to another, all tested. 1. The easiest method if you're using a theme like Genesis, is to use
Add Adsense After 1st Paragraph On Single Posts & Pages
This code enables you to display Adsense or any type of advertising content after the first paragraph of text on single posts and single
Migrate Sub Domain From Multi Site Network To Single Installation
This tutorial provides the step by step instructions for moving a sub site from Multisite ( MS ) network to its own domain on its own
Custom Author Avatars For Any User
This code enables you to use a custom image in replace of a Gravatar hosted image for any author in any WordPress theme. You can add the
Set Posts Per Page For Tag Archive
This code enables you to set the posts per page limit for any tag archive page. This way you can over ride the WordPress > Reading settings
2 Ways To Open Post Tag Archive Links In A New Window
This tutorial provides 2 slightly different code snippets which enable you to open the post tag archive links in a new window. You can open
You must be logged in to post a comment.