October 1, 2016 at 2:13 pm #828
Not really specific to the Pro version as this happens on the basic version as well.
When one adds the WPSP shortcode to an Elementor (EL) Shortcode element (or EL text or EL HTML element) and Saves, the posts do show up. So far, so good. But after one exits the EL environment, goes back to the Dashboard (or wherever) and then tried to go back into that page again with EL, an error is displayed saying that “the content area is not found on that page” … see this link to EL docs for further details:
I have tried other plugins’ shortcodes, notably Formidable Forms and Contact Form 7 and they both work as expected.
The only way to get the WPSP shortcode to work, that is, being able to go out and back into EL, is to place that shortcode in the Elementor WordPress Text widget element. So there must be something about the way the WPSP shortcode is handled.
LyleOctober 1, 2016 at 9:39 pm #829
Hmm, that’s strange. I’m not sure why they would require
the_content()function to be there, as that means the shortcode would have to display content.
What if the shortcode doesn’t display content at all? Social icons for example?October 2, 2016 at 9:22 am #832
I tried the Social Icons plugin from ThemeGrill and used the EL Shortcodes element and they displayed as soon as I pasted in the code and was able to go out and back in without the error.
I should have also mentioned, that inserting the WP WPSP Widget worked as well, with one caveat. I initially got an error on the front end, but when I selected a different WPSP list, it worked. And then when I selected the fist one (that gave the error), it worked as well … go figure 🙂October 2, 2016 at 11:33 pm #834
Hmm, let me play with this.
Will be dedicating the next few days to WPSP, so I’ll report back with what I find 🙂October 5, 2016 at 2:51 pm #846
Just playing with this – I’m not getting that error, but I am getting a really funky layout, where Elementor is trying to initiate the shortcode, but also displaying the shortcode and has it all blocked up in multiple areas.
I wonder if Elementor has an issue with shortcode using the ob_get_content() function.
I’ll keep playing around with it, but the shortcode itself isn’t anything special. In fact, it’s using the syntax shown here: https://codex.wordpress.org/Shortcode_API#OutputOctober 5, 2016 at 3:01 pm #847
I just updated the files here: https://github.com/tomusborne/WP-Show-Posts
Can you try using the WP Show Posts widget in Elementor with the new files?October 5, 2016 at 5:21 pm #849
Sorry for the delay, but I was out for a while.
All works perfectly with the new files inserting the WPSP WP Widget into Elementor and also with using the EL Shortcode widget and EL Text widget! 🙂 One can go out and come back into EL without that error 🙂 Yay! 🙂
Thanks Tom, I’d say it’s good to go 🙂
LyleOctober 5, 2016 at 5:22 pm #850
[RESOLVED]October 5, 2016 at 10:55 pm #851
- You must be logged in to reply to this topic.