Can You Put PHP Code In Custom Field?
-
I have a simple line I want to put in a custom field and it just won’t show up. It works when I place the code in single.php – it just doesn’t work when I put the code in through a custom field.
Here is what I have on my single.php page:
<?php echo get_post_meta($post->ID, “ko_text”, $single = true); ?>
And in my custom field named ko_text I have: <?php echo ddpl_list(1); ?>
I’ve been searching this site and the net for hours trying to find out if there is a way to do this…. !
Thanks for your help.
- The topic ‘Can You Put PHP Code In Custom Field?’ is closed to new replies.