# Post Field (in-progress)

## Post Field

{% embed url="<https://youtu.be/-K5VzESaKyc?feature=shared&t=216>" %}

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

<figure><img src="https://115503993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVRpgq7lelxP9PFleE0QT%2Fuploads%2FAwuYVBF2DPsxzBoijuqS%2FScreenshot%202024-07-18%20at%208.03.27%E2%80%AFPM.png?alt=media&#x26;token=ee5effa0-a6eb-4896-9e6e-5c7fcb22dc96" alt=""><figcaption></figcaption></figure>

Here is the entire code, you can copy and paste

```php
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,  
];
```
