{"id":64,"date":"2016-11-08T12:29:00","date_gmt":"2016-11-08T11:29:06","guid":{"rendered":"http:\/\/wpfrontier.com\/?p=64"},"modified":"2023-09-14T08:20:00","modified_gmt":"2023-09-14T06:20:00","slug":"frontier-post-shortcodes","status":"publish","type":"post","link":"https:\/\/wpfrontier.com\/frontier-post-shortcodes\/","title":{"rendered":"Frontier Post &#8211; Shortcodes"},"content":{"rendered":"<p>For the basic functionality, you only have to insert the Frontier post shortcode [frontier-post] in a page. Then you can control the functionality of Frontier Post from the settings in the admin panel.<\/p>\n<p>For more advanced functionality, there is a set of parameters to \u00a0the shortcode:<\/p>\n<p>&nbsp;<\/p>\n<div id=\"wpf_table\" style=\"clear: both; overflow-x: scroll;\">\n<table style=\"width: 800px;\" border=\"1\">\n<tbody>\n<tr>\n<th style=\"text-align: left; width: 15.36723163841808%;\"><strong>Parameter<\/strong><\/th>\n<th style=\"width: 1.5819209039548021%;\"><strong>E<\/strong><\/th>\n<th style=\"width: 1.5819209039548021%;\"><strong>L<\/strong><\/th>\n<th style=\"width: 80.11299435028249%;\"><strong>Description<\/strong><\/th>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_mode<\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">frontier_mode=&#8221;add&#8221; show the add post form, will return to the My Posts page (assigned in settings) on return<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_parent_cat_id<\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">Only show categories that is\u00a0<em>child<\/em> of the category ID. \u00a0This parameter must be a number &#8211; ex:\u00a0frontier_parent_cat_id=9<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_cat_id<\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">Default Category for new posts.This parameter must be a number &#8211; ex:\u00a0frontier_cat_id=24<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_list_cat_id<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 80.11299435028249%;\">Only list posts with the categories that is in the list. This is a comma-separated list &#8211; ex:\u00a0frontier_list_cat_id=&#8221;2,8,36,37&#8243;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_list_all_posts<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 80.11299435028249%;\">List all posts, do not limit to current user &#8211; ex: frontier_list_all_posts=true , Default value is false<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_list_text_before<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 80.11299435028249%;\">Display a text before the list. If you enter a text in the page before the shortcode, it will shown after the list! &#8211; ex: frontier_list_text_before=&#8221;This a list of your posts&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_edit_text_before<\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">Display a text before the edit post. If you enter a text in the page before the shortcode, it will shown after the post! &#8211; ex: frontier_edit_text_before=&#8221;Here you can add\/edit your post&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_myid<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">This is a parameter that can be used to determine which page is calling a template form. Default value is the page id &#8211; ex: frontier_myid=&#8221;important_info&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_return_text<\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">The text on the Save &amp; Return button on the edit form &#8211; ex: frontier_return_text=&#8221;Save Post&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_add_post_type<\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">Post type of the posts being added, default &#8220;post&#8221; &#8211; ex: frontier_add_post_type=&#8221;page&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_list_post_types<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 80.11299435028249%;\">Comma-separated list of post types to be included in the list, default &#8220;post&#8221; &#8211;<\/p>\n<p>ex: frontier_list_post_types=&#8221;post,page&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_custom_tax<\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">Comma-separated list of taxonomies. Be aware that Categories and Tags are managed from the settings panel, and as such no reason to add them. &#8211; ex:\u00a0frontier_custom_tax=&#8221;article-type,topics&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_custom_tax_layout<\/td>\n<td style=\"width: 1.5819209039548021%;\">\u00a0X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">Comma-separated list of layout of taxonomies &#8211; ex: \u00a0frontier_custom_tax_layout=&#8221;radio,checkbox&#8221;<\/p>\n<p>Possible layouts: single (dropdown, single select), multi (dropdown, multi select), checkbox, radio (radio buttons vertical), radioline (radio buttons horizontal), readonly<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_add_link_text<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 80.11299435028249%;\">Replaces the &#8220;Add new post&#8221; text on the list form &#8211; Example:\u00a0frontier_add_link_text=&#8221;Add new thing&#8221;. From version 3.5.0<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_list_pending_posts<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 80.11299435028249%;\">Add this parameter to the shortcode, and the list will show all pending posts. This can only be viewed users that have the capability &#8220;edit_others_posts (Administrators and Editors) &#8211; Example: frontier_list_pending_posts=&#8221;true&#8221;. From version 3.5.0<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_edit_form<\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">Edit form\u00a0(standard, simple or old) &#8211; ex:\u00a0frontier_edit_form=&#8221;standard&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_editor_height<\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">Height of editor content, default 300 &#8211; ex:\u00a0frontier_editor_height=500<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_list_form<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 80.11299435028249%;\">List form (simple,list,excerpt or full_post) &#8211; ex:\u00a0frontier_list_form=&#8221;full_post&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_pagination<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 80.11299435028249%;\">Deisable pagination (Default true) &#8211; ex:\u00a0frontier_pagination=&#8221;false&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_ppp<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 80.11299435028249%;\">Post per page in list form (default from settings) &#8211; ex:\u00a0frontier_ppp=50<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_user_status<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 80.11299435028249%;\">Limit users posts to specified status (draft,pending, private,published) &#8211; ex:\u00a0frontier_user_status=&#8221;draft,pending&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_mode<\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 80.11299435028249%;\">frontier_mode=&#8221;&#8221;quickpost&#8221;, will only display quickpost form (no list)<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_force_quickpost<\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 80.11299435028249%;\">frontier_force_quickpost=&#8221;true&#8221; will force display of quickpost form and hide buttons<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">\n<div>\n<div>frontier_list_sort<\/div>\n<\/div>\n<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 80.11299435028249%;\">frontier_list_sort=&#8221;post_title&#8221; will sort list by Post Title (Available from version 5.1.0) &#8211;\u00a0 &#8211; Allowed values: ID,\u00a0post_author,\u00a0post_date,\u00a0post_author,\u00a0post_date,\u00a0post_title,\u00a0post_status,\u00a0comment_status,\u00a0post_modified,\u00a0post_type,\u00a0comment_count<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_list_sort_order<\/td>\n<td style=\"width: 1.5819209039548021%;\"><\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 80.11299435028249%;\">Allowed values DESC for descending or ASC for ascending (Available from version 5.1.0)<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.36723163841808%;\">frontier_custom_type<\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 1.5819209039548021%;\">X<\/td>\n<td style=\"width: 80.11299435028249%;\">Custom variable to use in action &amp; filters where fp_sc_parms are used, Frontier Post does not use this parameter. default value post.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>E = Used in the edit (and add) form<\/p>\n<p>L = Used in the list form<\/p>\n<p>IDs can be added to the category list in the admin panel with a setting in Frontier Post advanced settings.<\/p>\n<p><strong><span style=\"color: #800000;\">IMPORTANT<\/span><\/strong> Remember to enclose comma-separated lists in double quotes, and no spaces between values<\/p>\n<p>Parameters can be combined:<\/p>\n<p>[frontier-post frontier_parent_cat_id=7 frontier_custom_tax=\"group,article-type\" frontier_custom_tax_layout=\"readonly,checkbox\"]<br \/>\n[frontier-post frontier_cat_id=24 frontier_mode=\"add\" frontier_return_text=\"Save text\"]<br \/>\n[frontier-post frontier_list_all_posts=\"true\" frontier_list_cat_id=\"3,6\" frontier_cat_id=\"3,6\" frontier_return_text=\"Publish &amp; Go\" ]<\/p>\n<p><em>\u00a0<\/em><\/p>\n<p><a href=\"http:\/\/wpfrontier.com\/wp-content\/uploads\/2015\/01\/MyPosts.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-86\" src=\"http:\/\/wpfrontier.com\/wp-content\/uploads\/2015\/01\/MyPosts.png\" alt=\"MyPosts\" width=\"729\" height=\"280\" srcset=\"https:\/\/wpfrontier.com\/wp-content\/uploads\/2015\/01\/MyPosts.png 729w, https:\/\/wpfrontier.com\/wp-content\/uploads\/2015\/01\/MyPosts-300x115.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the basic functionality, you only have to insert the Frontier post shortcode in a page. Then you can control the functionality of Frontier Post from the settings in the admin panel. For more advanced functionality, there is a set <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/wpfrontier.com\/frontier-post-shortcodes\/\">[CLICK TO READ MORE]<\/a><\/p>\n","protected":false},"author":6,"featured_media":353,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[27],"class_list":["post-64","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-frontier-post","tag-shortcode","article-type-documentation","topics-shortcode"],"_links":{"self":[{"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/posts\/64","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":33,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":786,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/posts\/64\/revisions\/786"}],"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=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpfrontier.com\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}