# Dynamic content in block attribute possible?

**URL:** <https://forum.pinegrow.com/t/dynamic-content-in-block-attribute-possible/8152>\
**Category:** Pinegrow WordPress Plugin\
**Created:** [June 14, 2023, 2:07pm UTC](https://forum.pinegrow.com/t/dynamic-content-in-block-attribute-possible/8152 "2023-06-14T14:07:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guido](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/guido/32/4958_2.png) [@Guido](https://forum.pinegrow.com/u/Guido)\
**Post date:** [June 14, 2023, 2:07pm UTC](https://forum.pinegrow.com/t/dynamic-content-in-block-attribute-possible/8152/1 "2023-06-14T14:07:31Z")

</div>

Hi,

Is it possible to load dynamic content in a block attribute?

I have this block attribute:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/4/46b9f323042fa2a29b13d3af4aecbf0a7f26c131.png)

I want to load dynamic content in the Values box of the Select Control type. In this case i want to load a custom field that i created with Metabox. Or if created with ACF.

And what about loading categories from a certain post type for example?

It would be awesome to be able to load dynamic content there.

Thanks  
Guido

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [June 25, 2023, 6:07am UTC](https://forum.pinegrow.com/t/dynamic-content-in-block-attribute-possible/8152/2 "2023-06-25T06:07:38Z")

</div>

@Guido this is not possible at the moment. How often is this needed?

---

<div class="post-metadata">

**Author:** ![Guido](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/guido/32/4958_2.png) [@Guido](https://forum.pinegrow.com/u/Guido)\
**Post date:** [June 26, 2023, 12:10pm UTC](https://forum.pinegrow.com/t/dynamic-content-in-block-attribute-possible/8152/3 "2023-06-26T12:10:43Z")

</div>

Hi @matjaz

Ah oke that would have been awesome. If this was possible i would use it probably on all future projects.

If i just think of creating one dynamic block where the client can choose a certain post type and choose how many to show plus choose to filter by category or custom field that would be awesome.

For post type and how many we don’t need dynamic data but for category or custom field we do since they are able to add more categories or custom field options.

So just having the ability to add php code to the values box of a Select control Type would solve the issue and opens so much doors 😉

To give you a better idea i have created a 4min video on how i am using it on the current project i am working on: [https://www.berrycast.com/conversations/d78cf061-4afe-59bf-aba8-85b986cb3920](https://www.berrycast.com/conversations/d78cf061-4afe-59bf-aba8-85b986cb3920)

Thanks!  
Guido

---

<div class="post-metadata">

**Author:** ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Post date:** [June 27, 2023, 10:49am UTC](https://forum.pinegrow.com/t/dynamic-content-in-block-attribute-possible/8152/4 "2023-06-27T10:49:41Z")

</div>

I was missing dynamic data in blocks also already. For data driven sites this would be very handy to have.
