Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support franz1989

    (@franz1989)

    Hello,

    Can you let us know where exactly did you get the URL https://personalitymag.com/page/3/?s=yoga&submit=Suchen

    Where did you search the page?

    Looking forward to your response.

    Thread Starter torbent

    (@torbentschechnegmailcom)

    You type “Yoga” in the search bar at the top and then you navigate to page 3 of the search results.

    Plugin Support franz1989

    (@franz1989)

    @torbentschechnegmailcom Possible that on page 3, the page https://personalitymag.com/personalitymag-2/ is included on the search result. That would be the reason that it shows the Landing Page that you have created.

    Is there a possibility that you exclude https://personalitymag.com/personalitymag-2/ page on your search result?

    Best Regards,

    Thread Starter torbent

    (@torbentschechnegmailcom)

    Hello,
    thanks – that’s it. I did this with the following code:

    
    add_filter( 'pre_get_posts', 'exclude_seedprod_page_from_search' );
    function exclude_seedprod_page_from_search($query) {
        if ( $query->is_search )
            $query->set( 'post__not_in', array( 13567 ) ); 
    
        return $query;
    }
    

    There is no option in Seedprod to exclude landingpages from the search, right? That option would make sense…

    Plugin Support franz1989

    (@franz1989)

    @torbentschechnegmailcom Yes, there is no option to exclude landing pages from search.

    Glad that it works now.

    Let me know should you need further assistance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page is shown in search results’ is closed to new replies.