简体   繁体   中英

Display the content of a page, which have some ACf field, on an other page

I try without success to display the content of a page which have some ACF field on an other page. The website is built with Wordpress. I try the query posts solution but it doesn't consider the ACF field of the page.

Thank you Thomas

If you need to access ACF fields on another page, use

the_field('my_field_name', $id);

where $id is the page ID of the other page or post.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM