Thanks everyone for your code samples here, I found that if an image has a srcset the solution only provides a correct URL for the default image not the others.
Hi, I keep getting:
Notice: Undefined property: stdClass::$taxonomy
and
Notice: Undefined property: stdClass::$term_id
on the base shop page, which is an archive, however a page also.
Anyone else experiencing this? Or can explain why it’s happening?
Thanks
Thanks Elliot, I just backdated the plugin as a temp measure and have now updated.
I also noticed that if I choose ALL as the type of post to be available from the page link select field; all the images and posts appear in the drop down but no pages. This is obviously connected to why the pages aren’t appearing in the select fields when page link is the choice.
The output word: ‘array’ is apparent when using page link also.
Hi Elliot, I too am facing the same issue as @rpetersnmt, not only that but when I use relationship, as opposed to page link, I get the word: ‘array’ instead of the page slug output in the URL I am updating.
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.