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

Xpip-2.png


Latest Posts in current lang

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

Xpip-5.png

Featured image

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

Xpip-3.png


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.

Xpip-4.png


Latest CPT

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

Xpip-1.png

Double conditions

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

Xpip-6.png

Other examples with shortcode

Xili-postinpost: examples with shortcode