[Plugin: Custom Field Template] using PHP in the_content() hook
the_content()hook is fabulous. Saves one from adding shortcodes into posts. However, I’d like to use PHP code in it to set the field to not display when empty (using this type of code).
Right now when I check ‘Use PHP’ it throws errors like
unexpected $endand so on. Playing with the PHP code doesn’t seem to solve the problem.
- The topic ‘[Plugin: Custom Field Template] using PHP in the_content() hook’ is closed to new replies.