Advanced custom fields
-
I created a doc and added a custom field in order to add it to the shortcode template. I edited shortcode.php and added the following code:
<?php $value = get_field( "resumen_doc" ); if( $value ) { echo $value; } else { echo 'empty'; } ?>
It doesn’t work (It’s like it’s empty but it’s not). It works on single-doc.php but not in shortcode.php
Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Advanced custom fields’ is closed to new replies.