• Resolved blackpenpress

    (@blackpenpress)


    Hi, I’m trying to load a custom search results page template for facetious results.

    I’ve tried the built in function is_facetious() which loads the custom page template but also seems to return true on standard search results from a non facetious form!

    I’ve also tried GET on the the value of the hidden facetious field but that doesn’t work either.

    many thanks,

    Tom

    http://wordpress.org/plugins/facetious/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter blackpenpress

    (@blackpenpress)

    Got it,

    if (isset( $wp_query->query[ 'facetious_post_type' ] )) {
    
    	get_template_part( 'archive', 'publication' );
    }

    excellent plugin, really useful!!

    Tom

    I’m having this same issue, but being a little less fluent in PHP I’m not sure how to implement the code Blackenpress mentioned above.

    What I would like to have happen is when a users clicks the search button in the custom facetious search I’ve set up (http://www.gotomyrtlebeach.com/dine/) then the results page that loads would look identical to the page they were on, except now the results listed below will be filtered down based on their search.

    Is there a way to have facetious call the same template file from the current page (in this case called “dine.php” for its search results?

    Can someone please explain where this bit of code goes/what it replaces?

    Thanks. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Load a custom search results page template for facetious results’ is closed to new replies.