WordPress.org

Ready to get started?Download WordPress

Forums

Execute shortcodes in ALL custom fields? (3 posts)

  1. Cibulka
    Member
    Posted 3 years ago #

    Hello, another quick one.

    My new theme is a heavy user of custom fields (MORE FIELDS plugin) and custom post types. Is there a way how to execute shortcodes in ALL custom fields (not just with specific meta keys)?

    I found many sollutions for specific meta keys:

    - http://code.hyperspatial.com/257/execute-shortcode-in-custom-field/
    - http://wordpress.org/support/topic/allowing-shortcode-in-custom-fields

    And many more.

    Thank you!

  2. s_ha_dum
    Member
    Posted 3 years ago #

    I think the closest you are going to get is in the second link you posted-- find Mark / t31os's comments. Run do_shortcode() on the custom_field content as it displays. I am not aware of any hook that will let you globally run the function on all custom_field content, unless maybe your theme or that plugin you mentioned provides one.

  3. Cibulka
    Member
    Posted 3 years ago #

    Thanks for a confirmation! If anyone comes up with a global sollution though, I would be glad.

Topic Closed

This topic has been closed to new replies.

About this Topic