- This topic is empty.
-
AuthorPosts
-
5th August 2020 at 12:35 pm #3060Nathan BoothMember
“Sorry, the content area was not found in your page. You must call the_content function in the current template…”
When attempting to create/edit the App post type, I receive the above message. Does anyone know where that post type/page template is defined, in order to insert the missing function?
(this is in reference to the “app-content” post type as defined in the plug-in index.php file)
Thanks5th August 2020 at 12:46 pm #4663Andy MoyleKeymasterThat sounds like your theme is a bit controlling!
The app content post type is just where app content is stored for serving to the app. It’s not served to the website so doesn’t need a template file with the content function in it. If WordPress we’re trying to serve it publicly it would default back to theme index.php or single.php.
Ask the theme developer why it’s doing that. You can create a post type specific file by copying index.php and single.php and renaming them. I’m a passenger in a car right now and can’t remember the naming convention! You can put it in the theme directory or create a child theme for it.But really your theme shouldn’t be throwing that error! Are you using classic editor? Or is it trying to do blocks? That may affect things
5th August 2020 at 12:59 pm #4664Nathan BoothMemberLOL Yes, I will try defining a post type specific file in my child theme, as you suggested. Once I have results, I’ll post here for anyone that may find it useful. I am using the Elementor editor with their default “hello-elementor” theme. Thanks for the hint!
5th August 2020 at 3:03 pm #4665Andy MoyleKeymasterMight not need to do a child theme… https://docs.elementor.com/article/173-does-elementor-work-with-posts-and-custom-post-types
5th August 2020 at 4:15 pm #4666Nathan BoothMemberIt’s actually really odd. The post type shows up in the selection screen (together with prayer requests, Bible reading, etc.) and I had already selected them all, and Elementor successfully allows editing of each one – EXCEPT the “App Content” (even though it is selected). This also goes for the Template section of Elementor. It recognizes and allows you to create a template for Single > Post > prayer/Bible – but App Content is not even in the drop-down. There is something fundamentally different about the way the custom post type app-content is implemented, which is not working with Elementor.
5th August 2020 at 5:09 pm #4667Nathan BoothMember@andymoyle:
Here is the root issue…
In the Church Admin Plugin file “Index.php”, where you register the post type “app-content”, the following parameter exists – ‘publicly_queryable’=>false,This is preventing Elementor from fully detecting this post type. If I change it to “true”, then I have no issues.
Can you please comment on:
– what issues might arise if this parameter is changed
– whether this change would be considered in the next update, and if not, what work-around would you recommend?Thanks for your help!
5th August 2020 at 6:01 pm #4668Andy MoyleKeymasterWon’t be a problem – was worried that it would then show up in front end site searches, but that can and was already stopped with another option.
It’s in the next update v2.689010th August 2020 at 9:02 pm #4675Nathan BoothMemberFYI… In case anyone else runs into this, the other KEY component to making the post type work with Elementor is to go into your settings > permalinks… and just click SAVE. You do not need to make any changes. Until you do this, WP will regenerate the valid list and Elementor will not work.
-
AuthorPosts
- You must be logged in to reply to this topic.