Execute a WordPress shortcode inside a Hype file

Hi everyone.

I need to execute a WP shortcode inside a Hype file, e.g. I want to show the ecommerce cart, dynamic inside the Hype file.
I have found this Insert php content from Wordpress Site, but I don't want to insert a full page or a template, but just a function, that may be reduced to a WP shortcode.

I have tried both directly the shortcode and the version with the PHP tag <?php echo do_shortcode("[shortcode]"); ?> but it is not ok.

Is this possible? How?
Thank you!


The way you can do this is by creating a Wordpress Template that contains nothing but your shortcode, and then incorporating a regular HTML widget in your Hype document that points to this template. This answer is still correct: Insert php content from Wordpress Site

Thank you!

1 Like