Hello, I’m trying to figure out how to use ACF and add_filter. I have a function where for a page, I can add a code snippet with an ID, and it pulls in all data from that ID (code below).
Before we started with ACF, it worked by pulling in the_post with add_filter and everything got pulled across. It causes and issue with breadcrumbs though, where the breadcrumbs are related to original post. Eg:
HOME / COURSE / COURSE #1 – this is original course with data
HOME / COURSE / COURSE #7 – this has ID of course #1 in main WP editor field and pulls data across from #1.