Is it possible to exclude player pages from WordPress search results or not even create bio pages for each player? I have disabled linking to player bios from the roster, but would like to have them not show up at all if possible.
This topic was modified 1 year, 6 months ago by wpomark.
Sure. Players are WordPress Custom Post Types. There’s an argument – exclude_from_search – used when creating a CPT with register_post_type() . You can make this happen without changing the plugin’s code by adding a snippet of code to your child theme. There are several explanations of this process on the web including https://www.forge12.com/en/blog/stop-wordpress-search-showing-custom-post-type/
-Mark
Viewing 1 replies (of 1 total)
The topic ‘Exclude players from search results’ is closed to new replies.