Skip to main content
added 1 character in body
Source Link

So, in this post it is explained how to supposedly enable shortcodes for custom fields in Wordpress. (Shortcodes are not enabled for custom fields by default.)

What I dont understand is where to place this code:

<?php echo do_shortcode(get_post_meta(get_the_ID(), 'name', true)); ?>

I understand I have to paste the name of my custom field into the 'name' parameter, but where do I need to place this line of code?

I suppose in the functions.php of the template? I am unsure where though in that file. I don't want to break anything of my template.

Any suggestions isare appreciated.

So, in this post it is explained how to supposedly enable shortcodes for custom fields in Wordpress. (Shortcodes are not enabled for custom fields by default.)

What I dont understand is where to place this code:

<?php echo do_shortcode(get_post_meta(get_the_ID(), 'name', true)); ?>

I understand I have to paste the name of my custom field into the 'name' parameter, but where do I need to place this line of code?

I suppose in the functions.php of the template? I am unsure where though in that file. I don't want to break anything of my template.

Any suggestions is appreciated.

So, in this post it is explained how to supposedly enable shortcodes for custom fields in Wordpress. (Shortcodes are not enabled for custom fields by default.)

What I dont understand is where to place this code:

<?php echo do_shortcode(get_post_meta(get_the_ID(), 'name', true)); ?>

I understand I have to paste the name of my custom field into the 'name' parameter, but where do I need to place this line of code?

I suppose in the functions.php of the template? I am unsure where though in that file. I don't want to break anything of my template.

Any suggestions are appreciated.

deleted 79 characters in body
Source Link
Pieter Goosen
  • 55.4k
  • 23
  • 115
  • 209

So, in this post ([http://stanhub.com/execute-shortcodes-inside-custom-fields-using-do_shortcode/][1])this post it is explained how to supposedly enable shortcodes for custom fields in Wordpress. (Shortcodes are not enabled for custom fields by default.)

What iI dont understand is where to place this code:

<?php echo do_shortcode(get_post_meta(get_the_ID(), 'name', true)); ?>

I understand I have to paste the name of my custom field into the 'name' parameter, but where do I need to place this line of code?

I suppose in the functions.php of the template? I am unsure where though in that file. I don't want to break anything of my template.

Any helpsuggestions is appreciated! [1]: http://stanhub.com/execute-shortcodes-inside-custom-fields-using-do_shortcode/.

So, in this post ([http://stanhub.com/execute-shortcodes-inside-custom-fields-using-do_shortcode/][1]) it is explained how to supposedly enable shortcodes for custom fields in Wordpress. (Shortcodes are not enabled for custom fields by default.)

What i dont understand is where to place this code:

<?php echo do_shortcode(get_post_meta(get_the_ID(), 'name', true)); ?>

I understand I have to paste the name of my custom field into the 'name' parameter, but where do I need to place this line of code?

I suppose in the functions.php of the template? I am unsure where though in that file. I don't want to break anything of my template.

Any help appreciated! [1]: http://stanhub.com/execute-shortcodes-inside-custom-fields-using-do_shortcode/

So, in this post it is explained how to supposedly enable shortcodes for custom fields in Wordpress. (Shortcodes are not enabled for custom fields by default.)

What I dont understand is where to place this code:

<?php echo do_shortcode(get_post_meta(get_the_ID(), 'name', true)); ?>

I understand I have to paste the name of my custom field into the 'name' parameter, but where do I need to place this line of code?

I suppose in the functions.php of the template? I am unsure where though in that file. I don't want to break anything of my template.

Any suggestions is appreciated.

Source Link

Enabling shortcodes for custom fields

So, in this post ([http://stanhub.com/execute-shortcodes-inside-custom-fields-using-do_shortcode/][1]) it is explained how to supposedly enable shortcodes for custom fields in Wordpress. (Shortcodes are not enabled for custom fields by default.)

What i dont understand is where to place this code:

<?php echo do_shortcode(get_post_meta(get_the_ID(), 'name', true)); ?>

I understand I have to paste the name of my custom field into the 'name' parameter, but where do I need to place this line of code?

I suppose in the functions.php of the template? I am unsure where though in that file. I don't want to break anything of my template.

Any help appreciated! [1]: http://stanhub.com/execute-shortcodes-inside-custom-fields-using-do_shortcode/