Quantcast
Channel: Display html for selected products or products categories - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by mike-source for Display html for selected products or products...

I've not tested this in Wordpress, but the first thing I would try is to rename the $post variable that pulls the ACF field to '$posts' (plural).Then change the foreach loop as follows.$posts =...

View Article


Answer by kaize for Display html for selected products or products categories

In similar cases I create a new wp_query passing the array with the post IDs like below: $posts = get_field('products_picker', 'option'); $new_query = new WP_Query(array('post_type' =>...

View Article


Display html for selected products or products categories

Hello I am using advanced custom field plugin for displaying some html only for selected products or only for products for selected categories in option page with relationship picker. My result instead...

View Article
Browsing latest articles
Browse All 3 View Live