- This topic has 6 replies, 4 voices, and was last updated 4 years, 9 months ago by Lyle.
November 1, 2016 at 3:53 pm #240900John
When I set a page as the blog and try to edit it using Elementor, I get this error message:
what php file do I place this line of code?
Thanks in advance,
JohnNovember 1, 2016 at 5:25 pm #240917TomLead DeveloperLead Developer
This is because you’re trying to edit the posts page, which doesn’t use
the_content()– it instead displays excerpts for your blog posts.
I’ve reached out to Elementor about this – hopefully we can come up with a solution or at least a more specific error message as I believe Elementor is meant to be used on pages and not the blog.November 1, 2016 at 7:58 pm #240970John
Okay. that makes sense. Simply, I am trying to get my blog to take on the overall look and feel of the website, especially the header. I have your GP Premium package so if there is anything in there that can help please steer me in the right direction.
thanks in advance.
JohnNovember 1, 2016 at 7:59 pm #240972TomLead DeveloperLead DeveloperNovember 1, 2016 at 9:26 pm #240978Lyle
Try using Tom’s WP Show Posts plugin 🙂
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and ElementorFebruary 14, 2017 at 10:39 pm #2789268shotping
I am also having this same error, with Elementor.
Trying to use WP Show Posts, but I have reached the near limit of my knowledge on what to do with either the shortcode (since I cant edit the posts page) or with the php snippet.
the_content()error a problem with the theme or the page builder?
Also, is this related as to why the description is not showing up on the posts page?
I was exploring options with
<?php echo category_description( $category_id ); ?>but it seems GP is shielding this option? SourceFebruary 14, 2017 at 11:16 pm #278928Lyle
To use WP Show Posts (WPSP) within a page built with Elementor, the easiest way is to just add the WPSP widget from the Elementor side panel (almost at the bottom in the WP Widgets area). Then just select the WPSP list from the dropdown and that’s all you need to do 🙂
Keep in mind that WPSP displays a LISTING of your posts displayed in whatever manner you have set up in the WPSP list. Keep in mind that you can also create a new single post using Elementor by going Post > Add New > Edit With Elementor.
The Pro add on to Elementor adds the Posts Widget which is pretty much what WPSP does, but not as thoroughly (IMHO) 🙂
The takeaway here is that neither Elementor nor WPSP will be able to (easily) replace the archives.php which is what gives you the listing of your posts using Settings > Reading > Front page displays > Posts page. And if you use one, you should not use the other in order to prevent “duplicate content”.
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and Elementor
- You must be logged in to reply to this topic.