foreach ($posts as $post) {
// Explode the (hopefully) comma-separated list of member IDs into an array
$member_ids_for_product = explode(',', get_field( 'trail_id', $post->ID ) );
-
+
// If the current member is in the list of IDs
if (in_array($member_id, $member_ids_for_product)) {
return true;
add_action('thematic_searchloop', 'mytheme_search_loop');
// End of the Contextual/Highlight Search functions
+add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 );
+
+function new_loop_shop_per_page( $cols ) {
+ // $cols contains the current number of products per page based on the value stored on Options -> Reading
+ // Return the number of products you wanna show per page.
+ $cols = 12;
+ return $cols;
+}
?>