Support Forums

Hey there, it looks like you've been redirected from designsandcode.com - as you can see we have a new home - read more

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

Forums Forums Search & Filter Pro Help with WP_Query not working

Viewing 10 posts - 11 through 20 (of 33 total)
  • Trevor Moderator
    #167692

    Ah, I see the problem. You have duplicated/conflicting code there. Try removing this line (7):

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    and this line (63):

    <?php endwhile; endif; ?>

    Thomas
    #167695

    True, but not working either 🙁

    Trevor Moderator
    #167699

    What happens if you change the arguments array name, say to $argsnew?

    Thomas
    #167709

    Replacing $args with $argsnew right?

    Nothing happens, still getting the “not working” message…

    Thomas
    #167726
    This reply has been marked as private.
    Thomas
    #167728
    This reply has been marked as private.
    Thomas
    #167731

    Ok you’re probably busy so I went ahead with customising the search filter template instead and it works.

    I would really like to get to the bottom of this though, as this was my preferred method for various reasons.

    So please let me know if you can find the issue, I would really appreciate it!

    Thomas
    #167733
    This reply has been marked as private.
    Trevor Moderator
    #167926

    Can you give me some example words to search for? Is the text to be found in the post title and/or the content (i.e. NOT the taxonomies or custom fields)?

    Thomas
    #167928
    This reply has been marked as private.
Viewing 10 posts - 11 through 20 (of 33 total)

You must be logged in to reply to this topic.