Plugin Author
finnj
(@finnj)
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
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
(@finnj)
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()
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.
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 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
(@finnj)
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
(@finnj)
Have you been able to test this ?
Sorry I have not, too busy. I’ll get to it today 🙂
Still getting:
You are not allowed to add new post type: ”post” – Allowed: (post)
Post type does not exists: ”post”
Plugin Author
finnj
(@finnj)
I am close to giving up – I have no idea why this is happening.
Is version 3.8.7.2 working for you ?
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
(@finnj)
So I can set this as resolved ?
I would think so? Thanks for all your help! You’ve been fantastic 🙂
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.
-
This reply was modified 9 years, 5 months ago by
Pawan.