SERP in posterboard view?

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 6 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27493

    Hi,

    is it possible to show the results page in/as “posterboard view”?

    regards

    Patrick Merck
    #27540

    Hi Bastian,

    Not really. It’s possible, but you would need to implement this yourself, and there’s very little that can be re-used from the posterboard plugin except the template.

    The search results template is handled by the theme, so its hard to give generic advice here, but you would probably need to use template_include to switch to your own template when events are being searched. This would then render the initial mark-up and load the necessary javascript files.

    What you could do is just use the template to pass the search term into the posterboard shortcode. This is a bit inefficient, since the site would have already retrieved the initial 10 events. Something like the following in you template should work:

     $search_term = get_search_query( true );
     do_shortcode( sprintf( '[event_board s="%s"]', $search_term ) );
    
    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 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.