Closed Nettel31 closed 4 years ago
We want to have the user favorites shown in a grid we made with wpgridbuilder. How is that possible? Gridbuilder support send us the following:
You can use this PHP filter in order to include post IDs (user which list): https://docs.wpgridbuilder.com/resources/filter-facet-query-string/ It requires to know how to get wishlist products from your plugin and to add them in post__in argument of WP_Query: https://developer.wordpress.org/reference/classes/wp_query/#post-page-parameters
but we don't know how to get the favorites products..maybe someone can help with that?
many thanks in advance!
We want to have the user favorites shown in a grid we made with wpgridbuilder. How is that possible? Gridbuilder support send us the following:
You can use this PHP filter in order to include post IDs (user which list): https://docs.wpgridbuilder.com/resources/filter-facet-query-string/ It requires to know how to get wishlist products from your plugin and to add them in post__in argument of WP_Query: https://developer.wordpress.org/reference/classes/wp_query/#post-page-parameters
but we don't know how to get the favorites products..maybe someone can help with that?
many thanks in advance!