Limit Wordpress To Perform Search Through Post Titles Only

Limit Wordpress To Perform Search Through Post Titles Only

On a project, sometimes you may require WordPress to perform search through post titles only and exclude post content as well as post excerpts. Although it’s not very useful to exclude post content from searches because then you will get less relevant results and also less results in quantity, but on a special project you…

Remove Comment Author Link In WordPress Comment List

Remove Comment Author Link In WordPress Comment List

By OutsourcedContent — on July 8, 2018 Add the following code snippet to the functions.php of your theme to remove the links to the comment author website in WordPress comments list. Works when the comments list is generated with wp_list_comments(). /** * Remove comment author link in WordPress comment list * * Removes the…

Remove Website Field From WordPress Comment Form

Remove Website Field From WordPress Comment Form

By OutsourcedContent — on July 8, 2018 Remove the website / URL field in WordPress comment form. /** * Remove webiste field from WordPress comment form * * Removes the website field when comments form is displayed with comment_form() * * @since 1.0 */ function velocity_remove_comment_form_website_field( $fields ) {      if ( isset(…

Quickly Enable Debug Mode On WordPress Website When Needed

Quickly Enable Debug Mode On WordPress Website When Needed

If you have ever faced “WordPress white screen of death” then you probably already know that there is something wrong on your website and in situations like this, you must switch ON WordPress debug mode on your website to diagnose the issue. But to enable debug mode, you will require to edit WordPress configuration file…

Debug Tools For WordPress / PHP – current_filter and debug_backtrace

Debug Tools For WordPress / PHP – current_filter and debug_backtrace

By OutsourcedContent — on June 11, 2019 We have already discussed error_log here.  The current_filter() function will return the current WordPress filter or action calling a specific function. The return type is string, so it’s straight forward to just use it. Add the following inside the function to know which WordPress action or filter is…

How to Display All Tags on Post Edit Page Instead of Frequently Used Tags

How to Display All Tags on Post Edit Page Instead of Frequently Used Tags

WordPress by default shows only 45 frequently used tags on post edit page in WordPress admin. In most of the cases it’s quite fine since most of the users do not have that many tags on their blog. But on a relatively large website, you may have hundreds of tags and you may require WordPress…

Change Default “Enter Title Here” Placeholder Text In Post Screen

Change Default “Enter Title Here” Placeholder Text In Post Screen

By default WordPress displays “Enter title here” placeholder text in the post title field section on the post screen, where you create a new post. But in case of custom post type, while we register our custom post type, there is no parameter or option to change this default placeholder text to provide more personalized…