Home › Forums › Pro Support › WPSP shortcode error with Elementor
Tagged: content area not found, Elementor, WPSP shortcode
- This topic has 8 replies, 2 voices, and was last updated 6 years, 5 months ago by
Tom.
-
AuthorPosts
-
October 1, 2016 at 2:13 pm #828
Lyle
ParticipantHi Tom,
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:
https://docs.elementor.com/article/56-content-area-not-found
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.
Cheers!
LyleOctober 1, 2016 at 9:39 pm #829Tom
KeymasterHmm, 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 #832Lyle
ParticipantI 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 #834Tom
KeymasterHmm, 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 #846Tom
KeymasterJust 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#Output
October 5, 2016 at 3:01 pm #847Tom
KeymasterI 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 #849Lyle
ParticipantHi Tom,
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 🙂
Cheers!
LyleOctober 5, 2016 at 5:22 pm #850Lyle
Participant[RESOLVED]
October 5, 2016 at 10:55 pm #851Tom
KeymasterAwesome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.