Block_grid_Items repeating

Hello,
I have gravity forms publishing forms as posts. I have set up custom html for the post using shortcodes as follows to display three sections of the form in a 3 column layout. This, I think, will allow ‘Today’, ‘Tonight’, and ‘Tomorrow’ side by side in a row.
The display looks fine, but the form results show grid_item #1 in all three columns. How do I fix this?

<p><b>Date:</b>  {Date Issued:9}<br></p>
<p>{Weather Discussion:11}</p>
[x_block_grid type="three-up"]

[x_block_grid_item]<h4>Today</h4>
<p><b>High Temperature:</b> {High Temperature (°F):26}<br>
<b>Winds/Direction:</b> {Wind Speed (mph):25}<br>
<b>Sky Cover:</b> {Sky Cover:30}<br>
<b>Irwin Snow:</b> {Snow (in):6}<br>
<b>Elkton Snow:</b> {Snow (in):33}<br>
<b>Friend's Hut Snow:</b> {Snow (in):32}<br></p>[/x_block_grid_item]

[x_block_grid_item]<h4>Tonight</h4>
<p><b>High Temperature:</b> {High Temperature (°F):26}<br>
<b>Winds/Direction:</b> {Wind Speed (mph):25}<br>
<b>Sky Cover:</b> {Sky Cover:30}<br>
<b>Irwin Snow:</b> {Snow (in):6}<br>
<b>Elkton Snow:</b> {Snow (in):33}<br>
<b>Friend's Hut Snow:</b> {Snow (in):32}<br></p>[/x_block_grid_item]

[x_block_grid_item]<h4>Tomorrow</h4>
<p><b>High Temperature:</b> {High Temperature (°F):26}<br>
<b>Winds/Direction:</b> {Wind Speed (mph):25}<br>
<b>Sky Cover:</b> {Sky Cover:30}<br>
<b>Irwin Snow:</b> {Snow (in):6}<br>
<b>Elkton Snow:</b> {Snow (in):33}<br>
<b>Friend's Hut Snow:</b> {Snow (in):32}<br></p>[/x_block_grid_item]

[/x_block_grid]

Thank you,
Rob

Hey Rob,

I checked your site and there is no issue with the layout. Would you mind providing more details or clarify what you mean by

Thanks.

Thanks for the speedy reply.
I apologize for the confusion, I had to manually edit the post since the site is live.
Instead please have a look at the post (http://cbac.robstrickland.net/category/weather/),
And take note that the temperatures and winds are ALL THE SAME for my test post.

Thanks,
Rob

Hi There,

I’m sorry but, trying to understand your issue here. Are you using any plugin to output those values which is not working or you want to know whether is it possible output dynamic data using a shortcode inside block grid ?

Thanks!

A little of both…

  1. can shortcodes be used?
  2. how do you add ids to block_items?

Hi there,

I am not that certain how the shortcodes you have used but shortcodes should work fine. Kindly try to double check the setup of the shortcode you are trying to use on the page. Try adding it in a blank page first and see gives the same issue as you mentioned, If it does, there must be something in the setup that you need to double check.

As for adding the ID to the block grid, you can simple do it by adding the id attribute in the shortcode just like [x_block_grid id="my-id" type="three-up"].

You can also do this for the grid item.

thanks…
http://cbac.robstrickland.net/test-w-new-_content-the-excerpt-php-v2/
is generated from this output:

<div class="extra-space"></div>
<p><b>Date:</b>  {Date Issued:9}<br></p>
<p>{Weather Discussion:11}</p>
[x_block_grid type="three-up"]

[x_block_grid_item id="1"]<h4>Today</h4>
<p><b>High Temperature:</b> {High Temperature (°F):26}<br>
<b>Winds/Direction:</b> {Wind Speed (mph):25}<br>
<b>Sky Cover:</b> {Sky Cover:30}<br>
<b>Irwin Snow:</b> {Snow (in):6}<br>
<b>Elkton Snow:</b> {Snow (in):33}<br>
<b>Friend's Hut Snow:</b> {Snow (in):32}<br></p>[/x_block_grid_item]

[x_block_grid_item id="2"]<h4>Tonight</h4>
<p><b>High Temperature:</b> {High Temperature (°F):26}<br>
<b>Winds/Direction:</b> {Wind Speed (mph):25}<br>
<b>Sky Cover:</b> {Sky Cover:30}<br>
<b>Irwin Snow:</b> {Snow (in):6}<br>
<b>Elkton Snow:</b> {Snow (in):33}<br>
<b>Friend's Hut Snow:</b> {Snow (in):32}<br></p>[/x_block_grid_item]

[x_block_grid_item id="3"]<h4>Tomorrow</h4>
<p><b>High Temperature:</b> {High Temperature (°F):26}<br>
<b>Winds/Direction:</b> {Wind Speed (mph):25}<br>
<b>Sky Cover:</b> {Sky Cover:30}<br>
<b>Irwin Snow:</b> {Snow (in):6}<br>
<b>Elkton Snow:</b> {Snow (in):33}<br>
<b>Friend's Hut Snow:</b> {Snow (in):32}<br></p>[/x_block_grid_item]

[/x_block_grid]

I had hoped that the id assignment of each grid item would help. But it looks/works the same: information entered into “Today” is displayed in Today, Tonight & Tomorrow, where as the actual gravity form entry include unique data for every field.
I hope I am explaining my issue clearly.
Thanks for your help.

I found the problem. I was outputting the same merge tag IDs for all 3 columns… instead of the unique IDs!
Lol, Sorry to drag you away from other work!
Regards,
Rob

Glad you were able to figure it out :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.