Sign in

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

  • This topic has 2 replies, 2 voices, and was last updated 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10718
    Avatar photogpsblues

    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 photoTomasz Dziuda

    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

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #10727
    Avatar photogpsblues

    Hi Tomasz,

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

    Thank you

     

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.