{"id":443,"date":"2016-01-01T16:27:53","date_gmt":"2016-01-01T15:27:53","guid":{"rendered":"http:\/\/wpfrontier.com\/?p=443"},"modified":"2016-01-09T11:58:14","modified_gmt":"2016-01-09T10:58:14","slug":"frontier-query-shortcodes","status":"publish","type":"post","link":"https:\/\/wpfrontier.com\/frontier-query-shortcodes\/","title":{"rendered":"Frontier Query &#8211; Shortcodes"},"content":{"rendered":"<p>Frontier Query comes with different shortcodes:<\/p>\n<p>3 shortcodes to display the pages needed to use Frontier Query, and 2 shortcodes to display information in posts\/pages &#8211; The 3 shortcodes to display pages:<\/p>\n<ul>\n<li>[fq-shortcode-builder] \u00a0(Frontier Query &#8211; Shortcode builder).<\/li>\n<li>[[fq-results]] (Results)<\/li>\n<li>[fq-search] (Frontier Search)<\/li>\n<\/ul>\n<p>Documentation for these 3 shortcodes:\u00a0<a href=\"http:\/\/wpfrontier.com\/frontier-query-getting-started\/\" target=\"_blank\">Frontier Query \u2013 Getting started<\/a><\/p>\n<p>Below is the documentation of the Infobox shortcode <strong>[fq-infobox]<\/strong> and the Widget shortcode <strong>[fq-widget]<\/strong>. Parameters for the 2 shortcodes are the same (except:\u00a0<span class=\"\">item-styling &amp;<\/span><span class=\"\">\u00a0item-columns, they are not valid for the widget shortcode).<\/span><\/p>\n<p>You can decide if you want to display the output as an Infobox or a Widget &#8211; Output can be displayed:<\/p>\n<ul>\n<li>In Posts (and custom post types)<\/li>\n<li>In Pages<\/li>\n<li>In Archives (ex. Category, Tag,\u00a0Author or Custom Taxonomy archives in you child theme).<\/li>\n<\/ul>\n<p>You can use the Shortcode builder to test and build your shorcodes, it will create and display shortcodes for both Infobox and Widget.<\/p>\n<p>The following widget settings are available:<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>title<\/td>\n<td>Title of the Widget, the text will be show in the title bar &#8211; ex: title=&#8221;Article Types&#8221;<\/td>\n<\/tr>\n<tr>\n<td>subtitle<\/td>\n<td>Text will be show underneath the widget titel bar\u00a0&#8211; ex: subtitle=&#8221;Grouped by Arctice Type&#8221;<\/td>\n<\/tr>\n<tr>\n<td>footer_txt<\/td>\n<td>Text will be shown in <em>italic<\/em> below the widget body content\u00a0&#8211; ex: footer_txt=&#8221;Your explanation&#8221;<\/td>\n<\/tr>\n<tr>\n<td>post_type<\/td>\n<td>List of Post Types to be included &#8211; ex: post_type=&#8221;post,page&#8221; (default: post) Only post type selected in settings are available.<\/td>\n<\/tr>\n<tr>\n<td>filter_object<\/td>\n<td>You can Filter the posts\/pages by different objects in addition to\u00a0post type and period. Only published post and pages will be included.<\/p>\n<p>Following filter objects are available (Only one object)<\/p>\n<ul>\n<li><strong>all<\/strong> (All records) &#8211; Default<\/li>\n<li>authors<\/li>\n<li>auto_archive\u00a0(<strong>Only valid if the user is on an archive page<\/strong> (ex. category page) filter object will be set to category &#8211; This will be done dynamicly based on the users navigation.<\/li>\n<li>category (slug) &#8211; if checked under Allowed Taxonomies in settings<\/li>\n<li>tags (slug) &#8211;\u00a0if checked under Allowed Taxonomies in settings<\/li>\n<li>Custom Taxonomies (slug) if checked under Allowed Taxonomies in settings).<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>filter_values<\/td>\n<td>Based on the Filter Object selection, Filter values can have the follwong values:<\/p>\n<ul>\n<li><strong>none<\/strong> &#8211; Unly valid if filter_object=&#8221;all&#8221;<\/li>\n<li>auto_archive (Will use the value from the archive page &#8211; ex: if on the category archive showing &#8220;Frontier Post&#8221;, &#8220;frontier-post&#8221; (slug)\u00a0will be used for filtering<\/li>\n<li>auto_post &#8211; If a single post is displayed, and this post has corresponding values for the Filter Object, these values will be used &#8211; Ex: If a post is displayed with Category=Frontier Post, and Filter Object is Category, Frontier Post will be used for filter. The same goes for Authors<\/li>\n<li>Values: Corresponding values for Filter Object &#8211; Ex Categories, Tags or Authors.<\/li>\n<li>Currect User (Only if Filter Object = Author)<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>period<\/td>\n<td>\u00a0Post\/Pages published within the time period selected will be included. &#8211; Possible values:<\/p>\n<ul>\n<li>&#8220;<strong>alltime<\/strong>&#8221; =&gt; All time<\/li>\n<li>&#8220;today&#8221; =&gt; Today<\/li>\n<li>&#8220;week&#8221; =&gt; Past 7 days<\/li>\n<li>&#8220;month&#8221; =&gt; Past month<\/li>\n<li>&#8220;3months&#8221; =&gt; Past 3 months<\/li>\n<li>&#8220;6months&#8221; =&gt; Past 6 months<\/li>\n<li>&#8220;12months&#8221; =&gt; Past 12 months<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>group_by_object<\/td>\n<td>\u00a0The Object being grouped by:<\/p>\n<ul>\n<li>authors<\/li>\n<li>post_type<\/li>\n<li>post_titles (One record per post\/page)<\/li>\n<li>category (if checked under Allowed Taxonomies in settings)<\/li>\n<li>post_tag (if checked under Allowed Taxonomies in settings)<\/li>\n<li>Custom Taxonomies slug \u00a0(if checked under Allowed Taxonomies in settings)<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>order_by<\/td>\n<td>Order the output by:<\/p>\n<ul>\n<li>count<\/li>\n<li><strong>name<\/strong><\/li>\n<li>date (only valid if Group by Object is Post Title)<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>sort_order<\/td>\n<td>\n<ul>\n<li><strong>ASC<\/strong> (Ascending)<\/li>\n<li>DESC (Descending)<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>limit<\/td>\n<td>Maximum number of lines (records) to show &#8211; ex: limit=&#8221;20&#8243;<\/td>\n<\/tr>\n<tr>\n<td>show_empty<\/td>\n<td>true\/<strong>false<\/strong>\u00a0&#8211; If No, lines with zero count will not be displayed. If Hierarchical \u00a0= Yes, Show empty will be &#8220;Yes&#8221; &#8211; ex: show_empty=yes<\/td>\n<\/tr>\n<tr>\n<td>hierarchical<\/td>\n<td>true\/<strong>false<\/strong> &#8211;\u00a0If set to Yes, output will be shown\u00a0Hierarchical (tree structure)<\/td>\n<\/tr>\n<tr>\n<td>incl_children<\/td>\n<td>yes\/only\/<strong>no<\/strong>\u00a0&#8211;\u00a0\u00a0Yes: Include Children and selected farther, Only: Include children only (not farther), No: Do not include Children (default)<\/td>\n<\/tr>\n<tr>\n<td>show_image<\/td>\n<td><strong>true<\/strong>\/false &#8211;\u00a0Only valid if Group By = Post Titles.<\/td>\n<\/tr>\n<tr>\n<td>show_count<\/td>\n<td><strong>true<\/strong>\/false &#8211;\u00a0Show the post count after the value.<\/td>\n<\/tr>\n<tr>\n<td>style<\/td>\n<td>standard\/<strong>shaddow<\/strong>\/outset\/rounded\/greyno-border \u00a0&#8211; Styiling of the fieldset conating the output<\/td>\n<\/tr>\n<tr>\n<td>float<\/td>\n<td>*left\/right\/<strong>middle<\/strong>\/none<\/td>\n<\/tr>\n<tr>\n<td>height<\/td>\n<td>*Height of the fieldset in pixels, default 0 = auto<\/td>\n<\/tr>\n<tr>\n<td>width<\/td>\n<td>*Width of the fieldset in pixels, default 0 = auto<\/td>\n<\/tr>\n<tr>\n<td>item_styling<\/td>\n<td>*<strong>list<\/strong>\/box\/narrowbox\/float\/table &#8211; Styling of the separate items<\/td>\n<\/tr>\n<tr>\n<td>item-columns<\/td>\n<td>*Number of columns, if item styling is:box\/narrowbox\/table<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>* Not valid for widget shortcode<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Frontier Query comes with different shortcodes:<\/p>\n<p>3 shortcodes to display the pages needed to use Frontier Query, and 2 shortcodes to display information in posts\/pages<\/p>\n<p>Below is the documentation of the Infobox shortcode  and the Widget shortcode . Parameters for the 2 shortcodes are the same (except: item-styling &#038; item-columns, they are not valid for the widget shortcode).<\/p>\n <a class=\"more-link\" href=\"https:\/\/wpfrontier.com\/frontier-query-shortcodes\/\">[CLICK TO READ MORE]<\/a>","protected":false},"author":9,"featured_media":353,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-443","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-frontier-query","article-type-documentation","topics-shortcode"],"_links":{"self":[{"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/posts\/443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/comments?post=443"}],"version-history":[{"count":22,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/posts\/443\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/posts\/443\/revisions\/487"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/media\/353"}],"wp:attachment":[{"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/media?parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/categories?post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/tags?post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}