Home › Forums › Backend Issues (wp-admin) › Page Link – get parent page data › Reply To: Page Link – get parent page data
Hi,
(The solution below is for front-end page use)
If your custom field on page A (which contain the link to the page B) is not a repeater field you can simply use the ‘WP_Query‘ with meta_query on PageA to get all page where you custom field is equal to you current page link.
Because the query will return page IDs, you can get all the pageA cutom field values.
Hope it’s help. ASk if you need more details.
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.