• I’ve got a solution here, but just documenting this so that I can find it next time I need it and because it might shed some light on other reported problems.

    I had code in a text widget –

    [loop category=news count=5 list=true]
    <a href="[field url]">[field title]</a> ([field date date_format="M j"])
    [/loop]

    that had worked once upon a time (for site launched in June).

    A user reported a problem this morning — the generated links were going to the page where the widget appeared, not to the actual links for the posts in the list.

    I changed it to

    [loop category=news count=5 list=true]
    [field link] ([field date date_format="M j"])
    [/loop]

    and all is well.

    In the course of debugging, I also found that

    <ul>
    [loop category=news count=5 ]
    <li>
    <a href="[field url]">[field title]</a> ([field date date_format="M j"])
    </li>
    [/loop]
    </ul>

    worked. (On a different site, I’d seen that wrapping things in HTML did work to force the correct URL to be generated.)

    This plugin is, of course, awesome — but it does sometimes make my head swim with all the options.

    If you need any additional information, just let me know. Or if there is a list of warnings about where certain codes don’t work, I’d appreciate a pointer to that. Thanks!

    Related articles:
    https://wordpress.org/support/topic/does-ccs-work-in-page-builder-post-framework-plugin?replies=3

    https://wordpress.org/support/topic/loop-stopped-working?replies=2

    https://wordpress.org/plugins/custom-content-shortcode/

  • The topic ‘Related to "Loop Not Working"’ is closed to new replies.