Show more than 10 results on Search page?

WordPress Event Management, Calendars & Registration Forums General Question Show more than 10 results on Search page?

This topic contains 7 replies, has 2 voices, and was last updated by  Stephen Harris 9 years, 4 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #19615

    Hi Stephen! Now that I’ve got EO Pro installed, I’m setting up a search page, but am running into the 10-posts limit. I only have about 30 events (movies in a festival) to show and I’d like the default to be to show them all. But I can’t figure out how to do it.

    I found reference here on the forums to a “numberposts” attribute for shortcodes, but adding it to the search shortcode doesn’t seem to work.

    (I can’t for the life of me determine why my regular (non-search) page, using a customized shortcode-event-list.php, is showing all posts, not just 10. But the search page, using search-event-list.php, is limited to 10….)

    Can you advise? Thanks!

    adam

    Adam Abrams
    #19627

    Try using posts_per_page instead…

    Stephen Harris
    #19628

    ^ that should be better documented

    Stephen Harris
    #19631

    Thanks Stephen!

    One last (promise!) question about the search page… can I change the word “Tag” in the search area, to “Genre”, and “All tags” in the popup menu to “All genres”?

    • This reply was modified 9 years, 4 months ago by  Adam Abrams.
    Adam Abrams
    #19720

    Hi Adam,

    In general you can change the parameters which register the tag taxonomy with: http://codex.wp-event-organiser.com/hook-eventorganiser_register_taxonomy_event-tag.html

    That filters the arguments passed to rergister_taxonomy() https://codex.wordpress.org/Function_Reference/register_taxonomy – including the labels parameter.

    But the search shortcode doesn’t respect those labels. I’ll look into addressing this for the next update.

    Stephen Harris
    #19729

    Well, thanks for the info at any rate – certainly saves me time thrashing about trying to get it to work… 8^)

    Looking forward to that feature when it arrives!

    Thanks,
    adam

    Adam Abrams
    #19734

    I’ve just merged the necessary changes into the develop branch which means its there waiting for the next release (which may be as early as this weekend).

    To take advantage of this, you would need to filter the labels. Here’s an example for venues (which you can adapt by changing ‘venue’ to ‘tag’): https://wordpress.org/support/topic/changing-event-labels

    Stephen Harris
    #19801
    Stephen Harris
Viewing 8 posts - 1 through 8 (of 8 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.