I need to add additional images next to post title, in this case decided to use ACF and add fields (image) into another plugin (Event Schedule). After I added fields in ACF I was trying to add some code from ACF documention however it doesnt work..
P.S. Every post will have different images based on their type. You can choose it while you are editing specific post.
In ACF field menu I chose to return format Image Array.
Tried with all return formats: Image Array, Image URL and Image ID. As I understand plugin cant find the variable acf_name and the image source is left blank.
I cannot read all of your code. But if ACF cannot display the field it is because you are on a post inside “The Loop” that corresponds to what you are attempting to get the field from. I don’t know anything about the plugin that you mention or what template file you’re attempting to modify, but your first step should be to ask the author of that plugin if you can add custom fields to their events and how where that information would be stored.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users