Forums Forums Search & Filter Pro Help with WP_Query not working

Viewing 10 posts - 11 through 20 (of 33 total)
  • Trevor
    #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; ?>

    Anonymous
    #167695

    True, but not working either 🙁

    Trevor
    #167699

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

    Anonymous
    #167709

    Replacing $args with $argsnew right?

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

    Anonymous
    #167726
    This reply has been marked as private.
    Anonymous
    #167728
    This reply has been marked as private.
    Anonymous
    #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!

    Anonymous
    #167733
    This reply has been marked as private.
    Trevor
    #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)?

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