[Resolved] WPSP shortcode error with Elementor

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support WPSP shortcode error with Elementor

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #828
    Lyle
    Participant

    Hi 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!
    Lyle

    #829
    Tom
    Keymaster

    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?

    #832
    Lyle
    Participant

    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 🙂

    #834
    Tom
    Keymaster

    Hmm, let me play with this.

    Will be dedicating the next few days to WPSP, so I’ll report back with what I find 🙂

    #846
    Tom
    Keymaster

    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#Output

    #847
    Tom
    Keymaster

    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?

    #849
    Lyle
    Participant

    Hi 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!
    Lyle

    #850
    Lyle
    Participant

    [RESOLVED]

    #851
    Tom
    Keymaster

    Awesome 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.