• Hi Eliot,
    This looks like a great plugin. Thanks.

    I can’t get the ‘loop exists’ condition to work. This code works fine as it lists all the CPTs of the current user. When I load the page in an anonymous (ie logged-out) browser tab, I don’t see any posts, which is correct, but I still see the h2 text?

    Not sure how best to debug it to provide more info

    Thanks,
    Ben

    [loop exists type=sponsorship author=this]
    
    <h2>Your fundraising pages:</h2>
    
    [the-loop]
    
    [field title-link]
    
    [/the-loop]
    
    [/loop]

    https://www.ads-software.com/plugins/custom-content-shortcode/

Viewing 1 replies (of 1 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hi, thank you for describing the issue, and sorry for the late response.

    I found that the check for empty result was not perfect, it was checking before the final filtering of query results. I improved this in the latest plugin update, so it should work correctly now.

Viewing 1 replies (of 1 total)
  • The topic ‘'Loop exists' condition not working’ is closed to new replies.