To add support for featured image, post format, thumbnail, post-thumbnails,background image, custom header, tiny MCE editor, and translation, add the following codes to functions.php file. It is important to note that, these codes add support for different things. This lines add support for feedback links support. Add theme support for Automatic Feed Links The line […]
If you are wondering how to display all the registered users from WordPress blog, then you are on the correct place. There are different ways you can manipulate wp_user query. There are several ways you can query Users, like by role, by email, orders, custom fields, including or excluding posts, returning arguments etc. Displaying all […]
Context: How to Add user contact Method in user profile page. Solution: Place this code in functions.php file to add any contact Method you want to display in WordPress.
Searching custom post according to title. Solution: If you need to fetch search custom posts types according to the title, just reference the code given below. Say you have custom post types called ‘house’ and there are several posts. If you need to search title “2bhk elegant flat”, just use this code to update searching. […]
Context: how to delete uncategorized category from posts We all know uncategorized is a default category working for WordPress posts. As we talk about the original behavior of WordPress posts, then we know that if we are not assigning any category to our post then it will automatically goes under a category named “Uncategorized” which […]
Context: How to use Ajax In WordPress ? Solution: To demonstrate the working of AJAX in WordPress, Here is a simple tutorial to extract tiles of specific Custom Post Types. Here we are taking an example to fetch the titles of all posts belonging to the same post type as per the user’s choice. User […]
Context: Wondering, How to allow editors to access only specific posts in WordPress ? Yes, it can be done. Solution: We know that by default WordPress has 6 user roles. And we can also create a lot of custom user roles. But sometimes we may need quite different ability. For example i want editor users […]
Context: Disable self-ping / self-trackback in WordPress without Plugin Solution: This trick prevents WordPress from self-ping, which happens if you cross-link pages or posts of your own website.
Context: How to enable debug mode in WordPress? Solution: This snippet will tell WordPress to save the debug log error in a .log file instead of displaying it in the front-end. A handy snippet to enable WordPress debugging in a live site. Just place this, or Enable this in wp-settings.php