Title: Two errors with Frontier-Post shortcode
Last modified: August 31, 2016

---

# Two errors with Frontier-Post shortcode

 *  Resolved [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/)
 * I am using the following shortcode on a page:
    `[frontier-post frontier_mode=”
   add” frontier_add_link_text="Add Something" frontier_list_all_posts="true"]` 
   I also had `[frontier-post frontier_mode=”add” frontier_add_post_type=”post” 
   frontier_add_link_text="Add Something"]` with the same error
 * When the page displays I get the following error on the right hand side under
   the action column after “Edit” before the “Preview”
    Warning: Missing argument
   3 for frontier_post_preview_link(), called in /home/fscbmw5/public_html/test/
   wp-content/plugins/frontier-post/forms/frontier_post_form_list.php on line 141
   and defined in /home/fscbmw5/public_html/test/wp-content/plugins/frontier-post/
   include/frontier_post_util.php on line 677
 * Also when you click on the “Add Something” link it displays a new page with the
   following error:
    You are trying to add a post with an illegal post-type: NONE
 * Also the both errors were happening before the recent update on version 4.0.0
 * I have also installed Frontier Restrict Backend and Frontier Set Featured
 * If you need to take a look I can provide a login as only Contributors can contribute
   on the site.
 * [https://wordpress.org/plugins/frontier-post/](https://wordpress.org/plugins/frontier-post/)

Viewing 13 replies - 16 through 28 (of 28 total)

[←](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/?output_format=md)
[1](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/?output_format=md)
2

 *  Plugin Author [finnj](https://wordpress.org/support/users/finnj/)
 * (@finnj)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115385)
 * I have released a nev version (4.0.3), with a couple of minor fixes around post
   types, and more specific warnings if somethings wrong.
 * Let me know if this fixes your issue
 *  Thread Starter [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115386)
 * The page containing the shortcode is still blank, the widget displays the following
   when I click “Create a new post”
    “You are not allowed to add new post type: ”
   post” – Allowed: (post) Post type does not exists: ”post””
 * I am logged in as admin.
 * Thanks
 *  Plugin Author [finnj](https://wordpress.org/support/users/finnj/)
 * (@finnj)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115387)
 * This is very strange, the only way I can provoke this is by unchecking **post**
   in Allowed Post types in Frontier post settings.
 * But when I do that the message looks like this:
    You are not allowed to add new
   post type: post – Allowed: ()
 * The last message: _Post type does not exists_
    Is from the validation that uses
   the standard wordpress function: [post_type_exists()](https://codex.wordpress.org/Function_Reference/post_type_exists)
   This means that the post type doesn’t exist in WordPress, and that should not
   be possible….
 * What is strange is the the double quotes around post: “post”
    – did you enter
   them or are they in the warning message ? – If you didn’t enter the double quotes,
   it seems like another plugin is doing somekind of parsing with the page content,
   before it is sent to the shortcake processor, and adds additional double quotes.
 * What happens if you you enter the plain shortcake [frontier-post] in a page, 
   and go to that page ?
 * What confuses me is, that it works with earlier version, which also should have
   the post_type_exists() check.
 *  Thread Starter [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115388)
 * Both sets of double quotes are in the message.
    If I enter `[frontier-post]` 
   in a page, the same thing happens, the page is blank.
 * Okay, so I changed the code to [frontier-post] disabled all the plugins and re-
   enabled one by one and (of course it was the last one) Yoast SEO that made the
   page disappear.
 * Then I replaced the code with `[frontier-post frontier_mode=”add” frontier_add_post_type
   =”post” frontier_add_link_text="Add Something"]` and received the following error
   on the page with the shortcode but it displayed all of the list of posts:
 * You are not allowed to add new post type: ”post” – Allowed: (post)
    Post type
   does not exists: ”post” – This message is only shown to admins
 * Since I didn’t have a link to create a new post I manually entered [http://fscbmwcca.com/test/my-contributions/?task=new](http://fscbmwcca.com/test/my-contributions/?task=new)
   in the browser and received:
    You are not allowed to add new post type: ”post”–
   Allowed: (post) Post type does not exists: ”post”
 * I then tried [frontier-post frontier_add_link_text=”Add Something”] and did not
   get an error until I clicked the Add Something link then I received the same 
   error:
    You are not allowed to add new post type: ”post” – Allowed: (post) Post
   type does not exists: ”post”
 * All of the above is with the Yoast SEO plugin deactivated.
 * I hope that helps?
    Thanks for continuing to help me with this 🙂
 *  Plugin Author [finnj](https://wordpress.org/support/users/finnj/)
 * (@finnj)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115389)
 * OK, I made a small fix to remove quotes from the post type in Frontier Post 4.0.4
 * Be aware that it might address the specific issue, but it does not resolve the
   root cause – You have something that interfeers with short code parameters.
 * This can mean that you will see other issues in Frontier Post and maybe also 
   other plugins.
 *  Plugin Author [finnj](https://wordpress.org/support/users/finnj/)
 * (@finnj)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115394)
 * Have you been able to test this ?
 *  Thread Starter [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115396)
 * Sorry I have not, too busy. I’ll get to it today 🙂
 *  Thread Starter [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115403)
 * Still getting:
 * You are not allowed to add new post type: ”post” – Allowed: (post)
    Post type
   does not exists: ”post”
 *  Plugin Author [finnj](https://wordpress.org/support/users/finnj/)
 * (@finnj)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115404)
 * I am close to giving up – I have no idea why this is happening.
 * Is version 3.8.7.2 working for you ?
 *  Thread Starter [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115408)
 * I updated on my live site and with Version 4.0.4 and it seems to be working on
   that! I have no idea either!
 *  Plugin Author [finnj](https://wordpress.org/support/users/finnj/)
 * (@finnj)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115412)
 * So I can set this as resolved ?
 *  Thread Starter [fscbmwcca](https://wordpress.org/support/users/fscbmwcca/)
 * (@fscbmwcca)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-7115413)
 * I would think so? Thanks for all your help! You’ve been fantastic 🙂
 *  [Pawan](https://wordpress.org/support/users/kkjk/)
 * (@kkjk)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-8630592)
 * this is totally disgusting plugin, i used it … it show error and did not show
   anything.. it is totally waste of time.. no support available for this plugin..
   frontier-post shortcode only allowed in: property – This post type: (page) – (
   209/S)
    -  This reply was modified 9 years, 5 months ago by [Pawan](https://wordpress.org/support/users/kkjk/).
    -  This reply was modified 9 years, 5 months ago by [Pawan](https://wordpress.org/support/users/kkjk/).

Viewing 13 replies - 16 through 28 (of 28 total)

[←](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/?output_format=md)
[1](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/?output_format=md)
2

The topic ‘Two errors with Frontier-Post shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/frontier-post_c8b8b0.svg)
 * [Frontier Post](https://wordpress.org/plugins/frontier-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/frontier-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/frontier-post/)
 * [Active Topics](https://wordpress.org/support/plugin/frontier-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/frontier-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/frontier-post/reviews/)

 * 28 replies
 * 3 participants
 * Last reply from: [Pawan](https://wordpress.org/support/users/kkjk/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/two-errors-with-frontier-post-shortcode/page/2/#post-8630592)
 * Status: resolved