acf field shortcode is not working when ajax load [acf field=”]
-
Soemtimes we use acf shortcode like
[acf field='field_name']
but it’s now working, when content will load by ajax. For that situation, there is a solution:
use shortcode with post id.
Like:
[acf field='field_name' post_id='123']
Here: 123 will be your dynamic post id.Now, How it will work in Our Product table shortcode column or Content column where user use shortcode.
Use shortcode like bellow:
[acf field='field_name' post_id='%product_id%']
Here: %product_id% is dynamic product ID. It will provide ourwooProductTable plugin. A Details Article on our Dynamic content in product table. TutorialThanks
- The topic ‘acf field shortcode is not working when ajax load [acf field=”]’ is closed to new replies.