By default, the post titles are linking (meaning you can click on them to open the page) on the archive, author, and posts pages. What if you don’t want that behavior? Genesis provides a filter event where you can turn that feature off.
In today’s quick tip, I’ll show you how you can disable it in one line of code. You’ll also see some helper utility functions available to make your job easier…right out of WordPress core.
See the answer
By using the
__return_falsehelper function available in WordPress code, you can write the filter to disable the link in one line of code. The filter event that you want is
add_filter( 'genesis_link_post_title', '__return_false' );
Felicia Betancourt says
I wonder how many WordPress devs know about these hidden gems? Thanks!
Great tutorial. Using this return false code to disable filters is simple and beautiful!