{"id":221131,"date":"2010-11-14T08:00:00","date_gmt":"2010-11-14T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/xili-postinpost\/"},"modified":"2019-05-21T15:22:00","modified_gmt":"2019-05-21T15:22:00","slug":"xili-postinpost","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/xili-postinpost\/","title":{"rendered":"xili Post in Post"},"content":{"rendered":"<p><em>xili-postinpost provides a triple toolkit to insert post(s) everywhere in webpage \u2013 outside or inside WP loop \u2013 . 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.<\/em><\/p>\n<ul>\n<li>Template tag function <code>xi_postinpost()<\/code> \u2013 see source ,<\/li>\n<li>shortcode like <code>[xilipostinpost query=\"p=1\"]<\/code> or like <code><br \/>\n<blockquote><p>[xilipostinpost query=\"cat=3,4,150&showposts=2&lang=en_us\"]<\/p><\/blockquote>\n<p><\/code>.<\/li>\n<li>\n<p>A shortcode like <code><\/p>\n<blockquote><p>[xilipostinpost query=\"cat=3,4,150&showposts=2\" lang=\"cur\"]<\/p><\/blockquote>\n<p><\/code> with param <code>lang<\/code> set to <code>cur<\/code> give a result according the current language (example: inside an undefined page displayed according browser language).<\/p>\n<\/li>\n<li>\n<p>and widget with powerful syntax for contextual display of query\u2019s result.<\/p>\n<\/li>\n<\/ul>\n<p>are available for developers, authors and webmasters.<\/p>\n<p>In widget (and template tag), if option is set, it is possible to choose display period and expiration date.<\/p>\n<p>In widget \u2013 if <a href=\"https:\/\/wordpress.org\/plugins\/xili-language\/\" rel=\"ugc\">xili-language plugin<\/a> active \u2013 to combine a query and the current language use params like <code>[query=\"cat=14\" lang=\"cur\"]<\/code> with square bracket<code>[]<\/code> and lang set cur. Don\u2019t put <em>cur<\/em> in query. See <a href=\"https:\/\/wordpress.org\/plugins\/xili-postinpost\/screenshots\/\" rel=\"ugc\">screenshot<\/a>.<\/p>\n<p>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.<\/p>\n<p>Paging is preserved even if a shortcode is used in a list of posts.<\/p>\n<h4>New with 1.7.02 :<\/h4>\n<ul>\n<li>Last Updated 2019-05-20<\/li>\n<li>see <a href=\"https:\/\/wordpress.org\/extend\/plugins\/xili-postinpost\/changelog\/\" rel=\"ugc\">tab and chapters in changelog<\/a><\/li>\n<\/ul>\n<h3>More infos<\/h3>\n<ul>\n<li>Tested on WP mono and multisite mode.<\/li>\n<\/ul>\n<h4>Why this plugin ?<\/h4>\n<p>xili-postinpost is compromise between minimum php coding (but not accessible by everybody) and end-user tool (like widget) <em>\u2013 but with lot of php lines in background \u2013<\/em> to afford flexibility for webmaster and data-designer for CMS. The core function of the plugin ( <code>xi_postinpost()<\/code> ) 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!<\/p>\n<h4>Are the queries recursive in widget ?<\/h4>\n<p>No, it is only possible to combine one true and another one if the first is false: the syntax is <code>[condition=\u2026 query=\u2026]:[query=\u2026]<\/code>. The second part can have is own condition as in screenshot 6.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>xili-postinpost provides a triple toolkit to insert post(s) everywhere in webpage. Template tag function, shortcode and widget are available.<\/p>\n","protected":false},"author":65,"featured_media":391962,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"xili Post in Post - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"xili-postinpost provides a triple toolkit to insert post(s) everywhere in webpage. Template tag function, shortcode and widget are available."},"footnotes":""},"categories":[1],"tags":[17,199,71,542,768],"class_list":["post-221131","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-multilingual","tag-page","tag-post","tag-posts","tag-theme"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/221131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=221131"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/221131\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/391962"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=221131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=221131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=221131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}