1. BLACK FRIDAY SALE Get 85% OFF Pro membership & access all our Pro Divi Extensions, Divi Layouts, Divi AI Generator, Divi Block, etc.VIEW PRICING
Dismiss Notice
UPDATE Custom Color Scheme + Premade Divi Layouts - A perfect combination to boost productivity. New 'Gadget Repair' layout added.Try our Custom Color Layouts
BEST Divi Block - A revolutionary online drag & drop tool to easily mix & match 478+ premade blocks to kick start your Divi site design. Special module designs are included as well.
Learn MoreTry Free Version

Can I exclude pages from search results?

Discussion in 'Basic Support Forum' started by Mr Robert j may, Oct 4, 2023.

  1. Mr Robert j may

    Mr Robert j may New Member
    Pro Member

    Can I exclude pages from search results, so only posts display? Or exclude certain pages?
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More
  2. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    If you use a search module, then you can choose to exclude pages in the Module settings > Content > Exceptions > Exclude Pages

    But if you're referring to the default Divi search, try the bellow jQuery code in WP Admin > Divi > Theme Options > Integration > Body Code:
            $( ".et-search-form" ).append( '<input type="hidden" name="post_type" value="post" />' );