Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

{{#getPostsByTags}} don’t works in P. 0.43

  • #10718
    Avatar photo[anonymous]

    Hi,
    this code works perfectly in P. 0.42 and returns a list of featured posts into a HTML section:

    <section>
    {{#getPostsByTags (concatenate "count=50&tag_as=id&allowed=featured&orderby=" @config.custom.landingOrderBy "&ordering=" @config.custom.landingOrdering)}}
       {{> landing}}
    {{/getPostsByTags}}
    </section>

    In P. 0.43 the result are an empty HTML section.

    To update the website I was forced to downgrade 🙁

    #10720
    Avatar photo[anonymous]

    Hi,

    Yes I can confirm this bug – it will be fixed in v.0.43.1: https://github.com/GetPublii/Publii/commit/37d9b12b894e1287b2f64db79836a77e9955f9f2

    In the meantime you can just add excluded_status=foo – this should solve your issue

    Problem occurs when you are using allowed with value different than any and empty or not defined excluded_status

    #10727
    Avatar photo[anonymous]

    Hi Tomasz,

    adding “excluded_status=foo” to the string fixes the problem.

    Thank you