- This topic has 2 replies, 3 voices, and was last updated 8 years, 10 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Hi there, Everyone:
How do I show a custom field for a Category if I am using Advanced Custom Fields???
I want to show a different block of text on each Category page.
I created a text area custom field for my Categories. The field name is:
Now how do I actually display that "category_footer" custom field on the Category pages?
I have genesis simple hooks plugin installed:
I have tried using short codes:
And that did not work. So I tried using PHP:
<p><?php the_field('category_footer'); ?></p>
But that did not work either.
And yes, when I tried to use short codes, I did check the "Use shortcodes" box, and when I tried to use php, I did check the "use php" box.
The data exists in the BACKEND ok. By that, I mean that if i go to a category page and enter text into the "category_footer" custom footer, then that data will stay there.
But I have no idea how to access that data on the front end.
What code should I use and WHERE does it need to go???
By the way; I have the location rules for my "category_footer" custom field set as the following:
Show this field group if Taxonomy Term is equal to Categories
I don't use tags / taxonimies of any kind (at least as far as I know).
Thanks in advance.
LAMENT: The documentation for ACF is not particularly user friendly, and the support for this plugin is really not very good, which is too bad because it is apparently a VERY POWERFUL plugin.http://www.thebuddhagarden.com/blog/about-buddhism/
Here's some code you can modify to displays the output of your custom fields simply by changing the hook position and conditional tag http://wpsites.net/web-design/how-to-create-a-custom-field/
The field name will need to match what you use in the ACF plugin settings.
just an opinion -
I find docs and support for ACF paid version are very good. much better than my experience with genesis so far.
© 2023 WPEngine, Inc.