This page contains several examples of the tpg_get_posts shortcode with modifications. When called without options it will list the most recent 5 posts in reverse chronological order, that is newest to oldest.
For the examples, the cat option has been included to select items from the test posts. It can be omitted.
filtered by category=flowers
[tpg_get_posts cat="flowers" field_classes="" more_link="more-link test-class"]
On a walk in Durres, I found this beautiful flowering bush. And this text has been added to test the more-link. (read more…)
filtering only posts with the tag “travel.”
[tpg_get_posts tag="travel" ]
On a walk in Durres, I found this beautiful flowering bush. And this text has been added to test the more-link. (read more…)
filtering only posts with the tag “travel” with offset.
Use the wp_query offset to skip the first post with a tag “travel”. This is the same as the previous example, but offset by 2.
[tpg_get_posts tag="travel" offset=2 ]
Showing Excerpt
[tpg_get_posts tag="travel" show_excerpt="true" ]