Custom Post Type loop example please

My first guess is to loop my ‘dogs’ CPT like this:

<loop type=dogs count=3>
  <Field title />
</loop>

But that only outputs the name of the current page. So does my next guess which would be:

<loop type=custom_post_type name=dogs count=3>
  <Field title />
</loop>

Does anyone have an example of what is meant to work?

Cheers, Richard

Did you try with uppercase syntax?

<Loop type=dogs count=3>
  <Field title />
</Loop>
2 Likes

That fixed it. Thanks. It’s right there in the docs: Dynamic tags are capitalized, like Loop and Field .

Since that’s a departure from html tags, maybe it should be highlighted :slight_smile:

2 Likes