Forums Forums Search & Filter Pro URL Parameters Not Working On Home Page (Redirecting To Index.php)

Viewing 10 posts - 1 through 10 (of 22 total)
  • Trevor
    #54481

    In the WordPress settings, does your home page contain the blog, or is it a specific page?

    In general, the shortcode results method needs to use our results.php template (see our documentation on this), which is often a problem for some themes, especially if the main blog is on the home page. Some users edit the theme template file for their home page and add the shortcode id to the arguments being passed to the wp query, but this has the drawback that a theme update will overwrite this.

    The most common rsults method used for home pages in the display as an archive method, where you can then specify the same template as is already used by the theme for the home page.

    Anonymous
    #54507

    Thanks for the response. In settings I have the front page as static & the chosen template doesn’t use any custom queries. It’s wrapped in “if ( have_posts() ) while ( have_posts() ) : the_post();” & that’s it. What’s in between is the search form shortcode & the results shortcode wrapped in the results div.

    When I use the template on inner pages, everything works fine and I’m currently using results.php (with the default structure).

    I created front-page.php as a replica of the chosen front-page template because I saw someone mention that as a potential solution, but had no luck.

    I’ve tried using an archive, but I’m a bit confused tbh & can’t get it to work. I feel like the shortcode method should be doable. I’m very close – it’s just those pesky parameters. Thanks again!

    Trevor
    #54508

    Ni Mike, we might have to Skype video conference to hammer this out? If some time on Sunday will work for you?

    Anonymous
    #54509
    This reply has been marked as private.
    Trevor
    #54511

    I am not seeing any problems? It seems to be working for me? No re-directs to index.php

    Trevor
    #54512

    Try opening permalinks and re-saving them.

    Anonymous
    #54516
    This reply has been marked as private.
    Trevor
    #54525

    I am a bit puzzled about the urls I am seeing on the show more, and about what the show more actually does.

    Home page example:

    http://swiped.staging.wpengine.com/?sf_action=get_results&_sft_swipetype=advertorial&sf_paged=2
    

    Classic Page example:

    http://swiped.staging.wpengine.com/classics?sf_action=get_results&_sft_persons=david-ogilvy&sf_paged=2
    

    I don’t recall seeing the sf_action=get_results before in a url? Maybe I have always missed it. I can’t see it on our demo pages either. What version of the plugin is this? Also note in the second example url that there is no / before the query string. That too is odd.

    The results are not being loaded in different pages, but instead load to the bottom. This is not normal WP behavior, so are you using a plugin or script to do this?

    Anonymous
    #54621
    This reply has been marked as private.
    Trevor
    #54676

    OK. I understand. I will need to speak with the developer, Ross, who is away on vacation this week.

Viewing 10 posts - 1 through 10 (of 22 total)