Home › Forums › Front-end Issues › custom field applied to "page" not seen in archive-page › Reply To: custom field applied to "page" not seen in archive-page
Ok I found a workaround, it’s well an archive-page that’s called so I added a condition where I call my custom field,
if(is_archive(MY-ARCHIVE-ID)){
$mygallery=get_field('MY_GALLERY_FIELD',MY-PAGE-ID);
...
};
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.