{"id":8637,"date":"2018-01-06T11:41:51","date_gmt":"2018-01-06T11:41:51","guid":{"rendered":"http:\/\/rifetheme.com\/help\/docs\/content-management\/shortcodes\/post-list\/"},"modified":"2020-05-23T11:34:44","modified_gmt":"2020-05-23T11:34:44","slug":"post-list","status":"publish","type":"docs","link":"https:\/\/rifetheme.com\/apollo13-framework\/docs\/content-management\/shortcodes\/post-list\/","title":{"rendered":"Post list"},"content":{"rendered":"<h2>Available as Elementor widget!<\/h2>\n<p>Since <strong>version 2.1.0<\/strong> it is available as <a href=\"https:\/\/rifetheme.com\/apollo13-framework\/docs\/content-management\/elementor-widgets\/\">Elementor widget<\/a>.<\/p>\n<h2>What is it for<\/h2>\n<p>Post list shortocode can be used to display lists of different post types. In our theme you can use it to display:<\/p>\n<ul>\n<li>posts<\/li>\n<li>albums<\/li>\n<li>works<\/li>\n<li>people<\/li>\n<\/ul>\n<p>You can check example use here.<\/p>\n<p>Post list will inherit layout from theme settings. So if you want to use post-list shortcode to display posts it will look exactly as your blog, no extra work required.<\/p>\n<p>Same goes for other post types.<\/p>\n<p><a href=\"http:\/\/rifetheme.com\/rebro\/about-us-3\/\">Example of posts list(works &amp; people)<\/a><\/p>\n<h2>Shortcode and its parameters<\/h2>\n<p>First lets see some examples:<\/p>\n<pre>&#91;a13fe-post-list type=\"post\" orderby=\"title\" posts=\"5\" columns=\"3\" filter=\"1\"]\r\n&#91;a13fe-post-list type=\"people\" orderby=\"title\" posts=\"5\" columns=\"2\" filter=\"0\" category=\"devs\"]\r\n&#91;a13fe-post-list type=\"album\" order=\"ASC\" orderby=\"title\" posts=\"20\" columns=\"4\" category=\"people,nature\" filter=\"1\"]\r\n&#91;a13fe-post-list type=\"album\" order=\"ASC\" orderby=\"title\" posts=\"3\" category=\"people+nature\" filter=\"0\"]\r\n&#91;a13fe-post-list type=\"work\" orderby=\"title\" posts=\"5\" columns=\"2\" filter=\"1\"]<\/pre>\n<p>So shortcode is named <code>a13fe-post-list<\/code> and it has following parameters that you can use:<\/p>\n<ul>\n<li><strong>type<\/strong> &#8211; (default <em>post<\/em>) post type that you wish to display you can chose from\n<ul>\n<li><em>post<\/em><\/li>\n<li><em>album<\/em><\/li>\n<li><em>work<\/em><\/li>\n<li><em>people<\/em><\/li>\n<\/ul>\n<\/li>\n<li><strong>posts<\/strong> &#8211; (default <em>9<\/em>) number of posts to display<\/li>\n<li><strong>margin<\/strong> &#8211; (default <em>to 10px<\/em>) margin between items in pixels.<\/li>\n<li><strong>max_width<\/strong> &#8211; (default <em>to 1920px<\/em>) depending on the actual width of the screen, the available space for bricks may be smaller, but never greater than this number.<\/li>\n<li><strong>columns<\/strong> &#8211; (default <em>3<\/em>) number of columns<\/li>\n<li><strong>filter<\/strong> &#8211; (default <em>0<\/em>) should filter be displayed. <em>0<\/em> or <em>false<\/em> means it is not displayed. <em>1<\/em> or<em> true<\/em> means it is displayed. It is useful if you have assigned categories to post type that you want to display.<\/li>\n<li><strong>order<\/strong> &#8211; (default <em>ASC<\/em>) order of posts based on <em>orderby<\/em> parameter. You can choose between <em>ASC<\/em> or <em>DESC<\/em>. It means ascending or descending order.<\/li>\n<li><strong>orderby<\/strong> &#8211; (default <em>date<\/em>) by what should posts be ordered. You have many options here as it accepts everything what is <a href=\"https:\/\/codex.wordpress.org\/Class_Reference\/WP_Query#Order_.26_Orderby_Parameters\">accepted by WP_Query<\/a>. You probably will want to stick to basics, that are:\n<ul>\n<li><em>date<\/em><\/li>\n<li><em>title<\/em><\/li>\n<li><em>name<\/em><\/li>\n<li><em>rand<\/em><\/li>\n<li><em>modified<\/em><\/li>\n<li><em>comment_count<\/em><\/li>\n<\/ul>\n<\/li>\n<li><strong>category<\/strong> &#8211; (no default value) categories you wish your posts to be from. You should use category slug as parameter(see examples above). if you want to display post from few categories then connect them with comma like <code>category=\"people,nature\"<\/code>. If you want only posts that are posted in both categories then connect them with plus sign like <code>category=\"people+nature\"<\/code>.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":8470,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_tag":[2],"class_list":["post-8637","docs","type-docs","status-publish","hentry","doc_tag-pro"],"_links":{"self":[{"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/8637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/comments?post=8637"}],"version-history":[{"count":6,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/8637\/revisions"}],"predecessor-version":[{"id":9149,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/8637\/revisions\/9149"}],"up":[{"embeddable":true,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/8470"}],"next":[{"title":"Slider","link":"https:\/\/rifetheme.com\/apollo13-framework\/docs\/content-management\/shortcodes\/slider\/","href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/docs\/8638"}],"wp:attachment":[{"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/media?parent=8637"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/rifetheme.com\/apollo13-framework\/wp-json\/wp\/v2\/doc_tag?post=8637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}