• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

number of results returned in search results page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › number of results returned in search results page

This topic is: not resolved

Tagged: is_search, pre_get_posts, search results

  • This topic has 9 replies, 3 voices, and was last updated 7 years, 5 months ago by Yohanaton.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • November 4, 2018 at 6:13 pm #224172
    Yohanaton
    Member

    Hi folks, thanks for taking a sec.
    Where can I define how many results are returned per search on the search results page?
    Thank you!!!!!

    https://sf115jtn.prodev.host/search/
    November 5, 2018 at 12:09 am #224176
    Brad Dalton
    Participant

    Try pre_get_posts


    Tutorials for StudioPress Themes.

    November 5, 2018 at 7:50 am #224185
    Yohanaton
    Member

    Hi Braddalto,
    Thanks for your reply!
    Are you suggesting I can find the number to edit on the functions php file?
    - or perhaps something else?
    Any further insight would be greatly appreciated.
    Thank you!

    November 5, 2018 at 1:07 pm #224195
    Victor Font
    Moderator

    You can change the number on the Genesis Theme Settings page in the Blog Page Template area, and also on the WordPress admin Settings/Reading page.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    November 5, 2018 at 1:20 pm #224196
    Yohanaton
    Member

    Hi Victor,
    Thanks for jumping in.
    - I've got both of those set to 10, but yet only 2 results are showing up...
    Wondering what else I can try to overwrite this...
    Thoughts?
    - Thank you!!

    November 6, 2018 at 6:49 am #224201
    Victor Font
    Moderator

    I doubt that your issue has anything to do with the Genesis Framework or WordPress for that matter. When I checked your search page, you are using a 3rd party search plugin as indicated by the search query string, maybe the Divi page builder perhaps? I suggest you contact Divi support for further assistance. I don't think this is anything we can help you with.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    November 6, 2018 at 10:49 am #224202
    Brad Dalton
    Participant

    You could add a code snippet in your child themes functions.php file using the is_search conditional tag with the pre_get_posts hook and the posts_per_page parameter.

    https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts


    Tutorials for StudioPress Themes.

    November 6, 2018 at 11:54 am #224204
    Victor Font
    Moderator

    There's something else going on with that site Brad. I searched for the word "frog" and there were 10 pages of results. Half the pages had no content.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    November 6, 2018 at 12:00 pm #224205
    Brad Dalton
    Participant

    Hello Victor. Yes. Maybe they're trying some code, plugin or modification already.


    Tutorials for StudioPress Themes.

    November 7, 2018 at 8:20 am #224215
    Yohanaton
    Member

    Hi Guys,
    Thanks so much for your help.
    - Yeah, not sure what's going on... and yes.. it's the divi builder plugin.
    Will reach out to them for help.
    Thank you!!!

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble