Xili-postinpost: examples with widget

xili-postinpost widget is very powerful to display the results of a query.

The query is based on WP query.

Find below some commented examples from our website:

Latest Posts

Widget displays 5 latest Posts when a Page is displayed


Latest Posts in current lang

Widget displays 4 latest Posts from categories 3, 4, 150 ordered by modification date sub-selected by current languages.


Featured image

Widget displays featured image of post 1153 when category 394 is shown. When image is clicked, the post is displayed.


Latest posts with tag

Widget displays titles of latest posts with tag 'sifr' when category 529 is shown. Titles are active as link to target post.


Latest CPT

Widget displays 6 latest Custom Post Type named "xilifunctions" when a single page of this CPT is displayed


Double conditions

Widget displays post 1432 title with link only when single post 726 or 883 are shown.


Other examples with shortcode

Xili-postinpost: examples with shortcode