+ My website is using the legacy Types + Views + Layouts plugins.
+ I've created a custom post type named Case Study.
+ The Case Study custom post type has several custom fields, including a repeatable field group named "Case Study Media." The group contains two custom fields:
__"Media Embed Code" (WYSIWYG)
__"Media Caption" (multiple lines)
+ The fields are output via a view named "View of Case Study Media" (ID: 3817, slug: view-of-case-study-media). This view is inserted into a layout named "Template for Case Studies" (ID: 3734, slug: template-for-case-studies).
Here's the problem. I have two pages with different shortcodes in the "Media Embed Code" field:
Page 1: hidden link
"Media Embed Code" field content: [video width="1920" height="1080" mp4="hidden link"][/video]
Page 2: hidden link
"Media Embed Code" field content: [embed]hidden link;
Page 1 correctly renders the video on the webpage in the right-hand column (see attached). Page 2 renders nothing at all in the right-hand column. We're expecting to see the Vimeo video in the right-hand column.
Please let me know if you require any further details.
Hello. Thank you for contacting the Toolset support.
You can not run the Embed shortcode by just adding it as a custom field value. Embed shortcode does have some dependencies and you can check more details about that with the following official Doc:
- https://codex.wordpress.org/Embed_Shortcode
To display the embed shortcode added as value - you will have to render the shortcode first and then you will be able to display it.
To do that, I've added the following shortcode by adding "Code Snippet" plugin:
- hidden link