Home › Forums › General Issues › Filtering issues which remove images and filters on page › Reply To: Filtering issues which remove images and filters on page
If you check the docs for wp_get_attachment_url()
You will see it accepts an attachment ID but your ACF field is returning:
Uses “Image URL” Return Format
So this may explain why the images don’t work
Ah I had no idea to be honest (haven’t been working with WordPress long). Presumably if I change the “film_poster” field to return the Image ID, I’ll need to change all instances where I’m using that field so that it uses wp_get_attachment_url?
I find it strange that the standard page doesn’t load any of the images, while the query version of the same page pulls the images through correctly?
So where have you assigned that ACF field to?
The “film_genre” field is attached to the “Film” Field Group, which in turn only shows if the Post Type “is equal to” “Film”. The “Film” Post Type has a slug rewrite on it of “films”, hence the URL.
Let me know if any other details would be helpful to find out what’s wrong.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.