Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Search Order of pages

Discussion in 'Misc WordPress Requests' started by Pioneer Web Design, Nov 20, 2017.

  1. Pioneer Web Design

    Guest

    Reply To: Search Order of pages, by Pioneer Web Design

    This is what I would do:

    https://www.johnparris.com/exclude-certain-pages-from-wordpress-search-results/

    Just add that to functions.php, but update the page ID’s in the array to the page ID’s you would prefer to not come up in search.

    That simply removes the pages from appearing in your search results (I’m guessing that people do not want to search on your site to find the Terms page).

    Hope that helps.

    https://codex.wordpress.org/Function_Reference/the_search_query

    Reply To: Search Order of pages
     
    #1

Share This Page

Web Hosting