Do Simple Hooks Work With Advanced Custom Fields?
-
Can I use the simple hooks to display custom fields created with the Advanced Customs Fields plugin?
I can’t seem to display them. If anybody knows if I have to do anything SPECIAL to get them to show, please, PLEASE let me know. (Like, do I have to add anything to the functions.php file or anything like that???
~~~~~
I created a couple of custom fields (one for categories, one for posts)and I have been trying to display them and I don’t know how to show them using simple hooks.
For example: one of my custom fields is called ‘test_field’
I put this in the genesis_after_post_content hook area:
[acf field=”test_field”]
And nothing shows.
If I put that same short code in the CONTENT area of the post, it DOES display.
Likewise, if I just write a bunch of text in the genesis_after_post_content hook area, that text shows up fine.
So it is specificcally the Advanced Custom fields that is NOT showing when it is called in the simple hooks.
And yes, I have the Execute shortcodes on this hook checked.
I have also tried using the PHP version as well, with the appropriate box checked, and it doesn’t seem to work either.
Thanks in advance.
- The topic ‘Do Simple Hooks Work With Advanced Custom Fields?’ is closed to new replies.