Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {%
- set args = {
- 'post_type' : 'yourposttype',
- 'numberofposts' : 10,
- }
- %}
- {% set posts = tb.get_posts( args ) %}
- {% if posts|length %}
- {% for item in posts %}
- <div>
- <h3>{{ item.post_title }}</h3>
- {{ item.post_content }}
- </div>
- {% endfor %}
- {% else %}
- <h3>There are no posts.</h3>
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement