- This topic has 6 replies, 4 voices, and was last updated 6 years, 1 month ago by
Lyle.
-
AuthorPosts
-
November 1, 2016 at 3:53 pm #240900
John
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,John
November 1, 2016 at 5:25 pm #240917Tom
Lead DeveloperLead DeveloperHi John,
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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentNovember 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.
John
November 1, 2016 at 7:59 pm #240972Tom
Lead DeveloperLead DeveloperWhat kind of look are you shooting for?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentNovember 1, 2016 at 9:26 pm #240978Lyle
Hi John,
Try using Tom’s WP Show Posts plugin π
Cheers!
Lylehttp://snifflevalve.com
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.
Is
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
Hi Mike,
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”.
Cheers!
Lylehttp://snifflevalve.com
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and Elementor -
AuthorPosts
- You must be logged in to reply to this topic.