Post Field (in-progress)

Post Field

Due to a technical limitation, you must enter this code inside your Query Look section.

Here is the entire code, you can copy and paste

if (function_exists('gb_get_field')) {
  $ids = gb_get_field('mb_bricks_template_user_selected_ice_cream');
}

if (empty($ids)) {
  return [
    'post_type' => 'ice-cream',
    'post__in' => [null], // set as [null] so we don't display anything when no selections
  ];
}

return [
    'post_type' => 'ice-cream',  
    'post__in'  => $ids,  
];

Last updated