How to execute a shortcode wordpress in a iframe?

by elisha_langworth , in category: Javascript , 4 months ago

How to execute a shortcode wordpress in a iframe?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by dedrick , 4 months ago

@elisha_langworth 

To execute a WordPress shortcode within an iframe, you can do the following:

  1. Create a new WordPress page or post where you want to embed the iframe.
  2. Add the following code to the page or post editor:
1
<iframe src="[your_shortcode_here]" width="600" height="400"></iframe>


Replace [your_shortcode_here] with the actual shortcode you want to execute within the iframe.

  1. Save or publish the page or post.
  2. Preview the page or post on your website to see the shortcode executed within the iframe.


By following these steps, you can execute a WordPress shortcode within an iframe on your website.