# I have a form which need to be added to every post

**URL:** <https://community.gravityforms.com/t/i-have-a-form-which-need-to-be-added-to-every-post/13815>\
**Category:** Get Help\
**Tags:** custom, php-function, embed-form, repeater\
**Created:** [November 7, 2022, 6:00am UTC](https://community.gravityforms.com/t/i-have-a-form-which-need-to-be-added-to-every-post/13815 "2022-11-07T06:00:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cp5017](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@cp5017](https://community.gravityforms.com/u/cp5017)\
**Post date:** [November 7, 2022, 6:00am UTC](https://community.gravityforms.com/t/i-have-a-form-which-need-to-be-added-to-every-post/13815/1 "2022-11-07T06:00:27Z")

</div>

So i have a form which need to be added to every post. But the radio option need to be different for each post. Any idea how can i do that? I can’t pass option and value in query string. any other ways?

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 8, 2022, 4:56pm UTC](https://community.gravityforms.com/t/i-have-a-form-which-need-to-be-added-to-every-post/13815/2 "2022-11-08T16:56:34Z")

</div>

How many different posts (is it a fixed number or will it change and the form needs to be added to new posts as well) and, how do you determine when the radio option needs to be different on a post? And what is different about the radio option?

---

<div class="post-metadata">

**Author:** ![cp5017](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@cp5017](https://community.gravityforms.com/u/cp5017)\
**Post date:** [November 10, 2022, 11:35am UTC](https://community.gravityforms.com/t/i-have-a-form-which-need-to-be-added-to-every-post/13815/3 "2022-11-10T11:35:00Z")

</div>

There is no fixed number posts. So i have added the form to a single post template.  
i kind of need gravity form to pick data(from repeater fields) from each post and create that as radio option.  
this is kind iof what i want to do.

> **[Can Radio Buttons be dynamically populated by a custom field array « Gravity...](https://legacy.forums.gravityhelp.com/topic/can-radio-buttons-be-dynamically-populated-by-a-custom-field-array)**
>
> Gravity Forms is a complete contact form solution for WordPress. With Gravity Forms you can build complex, interactive contact forms in minutes with no programming experience.

This code works but the output comes as array.

on data base the value is stored like this a:4:{s:6:“item-0”;a:1:{s:6:“priced”;s:2:“12”;}s:6:“item-1”;a:1:{s:6:“priced”;s:2:“12”;}s:6:“item-2”;a:1:{s:6:“priced”;s:3:“121”;}s:6:“item-3”;a:1:{s:6:“priced”;s:2:“12”;}}

the var dump comes like this  
array(4) { [“item-0”]=\> array(1) { [“priced”]=\> string(2) “12” } [“item-1”]=\> array(1) { [“priced”]=\> string(2) “12” } [“item-2”]=\> array(1) { [“priced”]=\> string(3) “121” } [“item-3”]=\> array(1) { [“priced”]=\> string(2) “12” } }

---

<div class="post-metadata">

**Author:** ![cp5017](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@cp5017](https://community.gravityforms.com/u/cp5017)\
**Post date:** [November 10, 2022, 4:38pm UTC](https://community.gravityforms.com/t/i-have-a-form-which-need-to-be-added-to-every-post/13815/4 "2022-11-10T16:38:49Z")

</div>

solved it

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 10, 2022, 7:32pm UTC](https://community.gravityforms.com/t/i-have-a-form-which-need-to-be-added-to-every-post/13815/5 "2022-11-10T19:32:40Z")

</div>

Thanks, Chandan. Let us know if you need anything else.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 10, 2022, 7:32pm UTC](https://community.gravityforms.com/t/i-have-a-form-which-need-to-be-added-to-every-post/13815/6 "2022-11-10T19:32:42Z")

</div>


