Output & exclude posts related to a custom post template


#1

Is there a way to output posts related to a custom post template excluding all other post types (without using tags)?

I only found this, which is not working in my case:

{{#get "posts" filter="custom_template:[name]"}}
  {{#foreach posts}}
    {{url}}
  {{/foreach}}
{{/get}}

I could output posts by filtering them by tags, which would mean that I always have to setup related tags to the post + post template… is this really the only way to do it!?


#2

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.