简体   繁体   中英

Magento2 Fishpig how to get return ACF image url

I'm new to magento2. Now I doing wp post inside my magento2 site by using Fishpig. I have ACF installed in my wp, and i wanted to call it.

My code

I try to console log my slider ACF, it returns 4 as i got 4 images in the repeater fields inside a post by using $post->getMetaValue("slider") as it stated inside fishpig documentation.

My ACF fields

Next, I want to loop out the repeater ACF fields and display Images. Image field already set to return URL.

How can i do that? What method to use? Please show me sample code. Thank very much.

If the slider is returning 4, this means ACF isn't working properly. Ensure you have the latest version of the ACF module in Magento and the free Magento WordPress Integration module.

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