nevilP
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
How to list articles in same order as passed ids in the shortcode
Started by: nevilP in: Toolset Professional Support |
2 | 3 | 2 years, 4 months ago | ||
Cookie value missing on AJAX refresh
Started by: nevilP in: Toolset Professional Support |
2 | 4 | 3 years ago | ||
Filter on a taxonomy View
Started by: nevilP in: Toolset Professional Support |
2 | 2 | 3 years ago | ||
Return value from shortcode is static (cached?)
Started by: nevilP in: Toolset Professional Support |
3 | 4 | 3 years ago | ||
Will WP views keep being supported?
Started by: nevilP in: Toolset Professional Support |
2 | 2 | 3 years, 2 months ago | ||
Empty content of user fields?
Started by: nevilP in: Toolset Professional Support |
2 | 4 | 6 years, 5 months ago | ||
Short codes do not work in WYSIWYG fields
Started by: nevilP
in: Toolset Professional Support
Problem: I have added some shortcodes inside a WYSIWYG custom field. I would like to output the results using get_post_meta, but the shortcodes are not executed. They are just written out in the content of the field. Solution: The WordPress function get_post_meta retrieves raw data from the database, but does not execute any shortcodes in that content. So the behavior you're experiencing is expected, if not what you're trying to accomplish. Take a look at the WordPress API "do_shortcode()". $field = get_post_meta(get_the_ID(), 'wpcf-extra-text-under-products', true); echo do_shortcode($field); Or you can try applying filters to that field value like so: echo apply_filters('the_content', get_post_meta(get_the_ID(), 'wpcf-extra-text-under-products', true)); Relevant Documentation: https://developer.wordpress.org/reference/functions/do_shortcode/ |
2 | 4 | 6 years, 9 months ago |