• I have a theme where I need to put a shortcode directly into the code. This would be ok if it was always the same shortcode, using the do shortcode function, but each shortcode is going to be slightly different, as it is to show a video and each video has its own shortcode.

    Is there some code I can add which will then show the current shortcode being used?

    The theme has a section where I add the video info (in this case a shortcode) and this is then placed within the page, separate from the main content.

    Thanks.

  • The topic ‘PHP within the code to read a shortcode’ is closed to new replies.