- This topic has 2 replies, 3 voices, and was last updated 6 years, 6 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
How can we get custom fields to display shortcode on our pages in Studio Press/Genesis Framework? For instance, we have created custom a custom field on a page template, where we wish to display a post news feed via shortcode such as: [ecs-list-events cat='openings' limit='1'] but it just shows up blank on the live page. (Although <iframes> work fine.) Thank you!http://8ab.d15.myftpupload.com/artgallerylasvegas/
Run your custom field value through
do_shortcode() before outputting it. For example:
echo do_shortcode( get_post_meta( get_the_id(), 'custom_field_key', true ) );
do_shortcode() function tells WordPress to render any shortcode passed through it.
© 2023 WPEngine, Inc.