xili-postinpost provides a triple toolkit to insert post(s) everywhere in webpage. Template tag function, shortcode and widget are available.
What is – xili-postinpost – versus – Recent Posts – delivered by WP as default widget ?
Recent Posts only displays title with link of latest posts from all categories.
With xili-postinpost it is possible to choose what to display and which categories or tags associated with post (and html tags or class).
In template tag `xi_postinpost`: is it possible to use query passed as array ?
YES, see below an example using array and userfunction (formatting the result of query differently than default) :
<?php echo xi_postinpost( array( 'showposts' => '4' , 'query' => array( 'category__and' => array( $cat_id, 7 ) ), 'userfunction' => 'xili_pip_banner' ) ); ?>
What is – conditional – display ?
Currently the result of widget is ever displayed. Here it is possible to use function (currents or made by webmaster) to decide when to display according context. By example if you use is_page
, if the condition return true, the widget show the result here when a page is displayed in website. Another example with is_category
and params 1,5,87
in the query input : when one these three categories is shown, the widget show the resulting list.
What happens if the condition is not true ?
If the condition is false, you can decide to show result of another query. If the condition is not inside the conditional template tags, it is possible
to create and use a conditional function created by you (in functions.php).
In widget, what is the code to see latest posts in current language ?
xili-language plugin active
Very simple : [lang='cur']
In widget, what is the code to select two queries according current language ?
xili-language plugin active
In this case, condition uses a function available with xili_language :
[condition='is_xili_curlang' param='fr_fr' query='p=4953']:[query='p=4972']
param fr_fr
is passed to function is_xili_curlang
, so the first query is fired only if french webpage.
The result adapts and displays the content (can be image+text) according webpage language.
When using shortcode, the result display excerpt under the title, why ?
See the topic here in forum
What is – from to – feature introduced in 0.9.2 ?
The webmaster is able to define a period (a slot) when the widget is visible in sidebar (or the shortcode is display inside the content). By example: for an advertising post or an article for a future meeting which disappears the day after the meeting (expiration date).
Is xili-post-in-post compatible with xili-language trilogy ?
Yes xili-language plugin is compatible, visit here and look on the right sidebar or go in WordPress repository.
Support Forum or contact form ?
Effectively, prefer forum to obtain some support.