[Plugin: Custom Field Template] PHP code not working inside the_content hook
-
I tried both shortcodes and direct php to display custom fields inside the_content hook but no success
For example my custom field was Display tried both methods but didn’t work even tried to execute a simple php echo but that’s also not working but i can confirm html and plain text is working fine inside the hook.
[Display]
<?php
if ( get_post_meta($post->ID, ‘Display’, true) ) {
echo get_post_meta($post->ID, “Display”, true);
}
?>So any suggestion?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘[Plugin: Custom Field Template] PHP code not working inside the_content hook’ is closed to new replies.