Shortcode V2 elements

Hi there,

I found this thread explaning the same issue:

Maybe it isn’t a good way to use code, but i’m building my portfolio page / template like this:

content-portfolio.php in my child-theme (first part of it, just to explain):

<?php echo do_shortcode ('[cs_content][cs_section bg_image="https://www.nl/wp-content/uploads/2017/02/IMG_2885.jpg" parallax="false" separator_top_type="none" separator_top_height="50px" separator_top_angle_point="50" separator_bottom_type="none" separator_bottom_height="50px" separator_bottom_angle_point="50" class="color-overlay" style="margin: 0px;padding: 25px 0px;"][cs_row inner_container="true" marginless_columns="false" style="margin: 0px auto;padding: 0px;"][cs_column fade="false" fade_animation="in" fade_animation_offset="45px" fade_duration="750" type="1/1" style="padding: 0px;"][x_custom_headline level="h1" looks_like="h3" accent="false" style="color: hsl(0, 0%, 100%);"]' . $titel . '[/x_custom_headline][x_gap size="40px"][x_custom_headline level="h4" looks_like="h5" accent="false" style="color: hsl(0, 0%, 100%);"]Handig om meteen te weten[/x_custom_headline][cs_block_grid type="two-up"][cs_block_grid_item title="Links" style="color:white;"]

So:

  1. I made a page in cornerstone
  2. I placed the wordpress code of it as a shortcode
  3. I added some custom post types as ’ . $titel . ’ in the text. So i fill in the unique content in the pages with ACF.

Now it are the [cs_element_content_area_off_canvas _id=“30”] shortcodes, it doesn’t work anymore. You explain in the mentioned post you’re placing all information of this id ‘30’ in the post meta. How could i place it in my code?

Do you have a solution to accomplish the same I always did before with V2 elements?

Thanks a lot!

P.S. I found the id’s in the database. Is there a way to add this information directly into the shortcode?

1 Like

Hi there,

Thanks for posting in.

I tried but it’s not possible since the shortcode will only pull the data of the current post/page. Hence, copying it to another page where data is not present will not work as of now. But our developers are already aware of it and maybe it will be possible in the future updates.

Thanks.

Just to confirm with what’s Rad’s mentioned, we are working on a way to fix this. The goal is for it to be part of the next major update. It’s a pretty involved change, so there will be a period of beta testing.

1 Like

Hi Alexander and Rad.
Great to hear that. We’ll prepare the page as much we could for now. Then it would be just copy - paste - implement.

Thanks a lot!

On behalf of my colleagues, you’re welcome. Cheers! :slight_smile:

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