Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Slugs, templates, and secondary loops

Viewing 9 posts - 1 through 9 (of 9 total)
  • Steven
    #21660

    Apologies for the cryptic title. I honestly don’t know what to call this.

    I have an archive for an “Organizations” custom post type. On this archive I’m including its own search filter form. I have another template called results-organizations.php which is where I want results to be redirected.

    On the archive-organizations.php page I have another loop at the top of the page that displays two “featured” organizations. Because I originally had my organizations’ search filter form’s tag set to “organizations”, the archive page was actually using the results-organizations.php template, thus not even reading the “featured organizations” loop from the archive page. My guess is that with the organizations slug, the permalink structure is getting a little confused and rather than site.com/organizations using archive-organizations.php, it uses results-organizations.php… even though nothing has been searched or filtered!

    After removing the slug so there is no slug at all anymore, everything but the pagination works.

    An easy work-around might be simply adding the “featured organizations” loop to the results template, but that just seems to hackish to me, and I’d like to understand what is actually happening here.

    Ross Moderator
    #21792
    This reply has been marked as private.
    Steven
    #21809
    This reply has been marked as private.
    Steven
    #21811
    This reply has been marked as private.
    Ross Moderator
    #21818
    This reply has been marked as private.
    Steven
    #21819
    This reply has been marked as private.
    Ross Moderator
    #21820
    This reply has been marked as private.
    Ross Moderator
    #21821
    This reply has been marked as private.
    Steven
    #21822
    This reply has been marked as private.
Viewing 9 posts - 1 through 9 (of 9 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.