Linux 软件免费装
Banner图

xili Post in Post

开发者 michelwppi
MS dev.xiligroup.com
更新时间 2019年5月21日 15:21
捐献地址: 去捐款
PHP版本: 4.9 及以上
WordPress版本: 5.2
版权: GPLv2

标签

post widget posts plugin page theme shortcode multilingual template tag template file conditional tag

下载

0.9.0 0.9.1 0.9.2 1.0.0 1.0.1 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.6.4 1.7.02 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 1.4.1

详情介绍:

xili-postinpost provides a triple toolkit to insert post(s) everywhere in webpage - outside or inside WP loop - . The displayed post(s) are resulting of queries (see codex) like those in WP loop but not interfere with main WP loop. Widget contains conditional syntax. are available for developers, authors and webmasters. In widget (and template tag), if option is set, it is possible to choose display period and expiration date. In widget - if xili-language plugin active - to combine a query and the current language use params like [query="cat=14" lang="cur"] with square bracket[] and lang set cur. Don't put cur in query. See screenshot. For each post of the resulting list, the displayed result is hightly customizable and can contain title, excerpt, content, thumbnail image with or without link to the post as single. Paging is preserved even if a shortcode is used in a list of posts. New with 1.7.02 :

安装:

Upload the xili-postinpost plugin to your blog, Activate it. Go to settings. If you want to use widget, go to Widgets menu of Appearance menu. To use shortcode inside post's content, refer to examples provided in these posts here. To use core functions of plugin, as developer, refer directly to code source before inserting (and echoing result) of the function in your theme. prerequisite

屏幕截图:

  • widget settings UI for a simple query
  • widget settings UI for a simple conditional query and all display/input options set.
  • widget settings UI for a two conditional queries.
  • widget settings UI for a query combined with current language (requires xili-language).
  • widget settings UI: in this case, Featured images of category ID11 will be listed in ul li list according current language.
  • appearance - customize - widget settings UI: real time results during settings (WP 3.9+)

升级注意事项:

Please read the readme.txt before. As usually, don't forget to backup the database before major upgrade or testing no-current version found in other versions tabs. Upgrading can be easily procedeed through WP admin UI or through ftp.

常见问题:

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) : ` '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.

更新日志:

1.7.02 (2019-05-20) 1.6.2 (2016-02-10) 1.6.0 1.6.1 1.5.3 1.5.2 1.5.1 1.5.0 1.4.1 1.4.0 1.3.0 1.2.2 1.2.1 1.2.0 1.1.1 1.1.0 1.0.1 1.0.0 0.9.7 0.9.6 0.9.5 0.9.4 0.9.3 0.9.2 0.9.1 0.9.0 0.8.0 Why this plugin ? xili-postinpost is compromise between minimum php coding (but not accessible by everybody) and end-user tool (like widget) - but with lot of php lines in background - to afford flexibility for webmaster and data-designer for CMS. The core function of the plugin ( xi_postinpost() ) and its rich argument (array with lot params) was created 4 years ago to insert by example a recent news in header, a target post inside blockquote set in content of a page or a post. Doing a public version is like finishing a book. Remind that free code is not gratis, include fees in quotation for commercial use or clients and donate. For free use, send an email! Are the queries recursive in widget ? No, it is only possible to combine one true and another one if the first is false: the syntax is [condition=… query=…]:[query=…]. The second part can have is own condition as in screenshot 6.