Do_shortcode on cornerstone's shortcodes

Hi,

I try to use do_shortcode php function on cornerstone copy-pasted shortcodes from a designed page.
But not all shortcode are rendered by do_shortcode.
How to render cornerstone codes from php ?

Have a good day,
Benjamin.

Hi There,

Thanks for writing in! Which shortcode did you try to use and on which template part ?

Here’s an example.

echo do_shortcode('[x_share title="Share this Post" facebook="true" twitter="true" email="true"]');

Thanks!

i try on a full cornerstone like:

[cs_content][cs_element_section _id=“1”][cs_element_row _id=“2”][cs_element_column _id=“3”][cs_element_search_inline _id=“4”][/cs_element_column][/cs_element_row][/cs_element_section][cs_element_section _id=“10”][cs_element_row _id=“11”][cs_element_column _id=“12”][cs_element_headline _id=“13”] (…)

I have also discovered another problem:
all is now stored in db and referenced by _id !

how to use cornerstone edited page as template for custom post type ?

Hi there,

You can only do that with shortcodes generated from classic elements. Please re-create your builder’s content from classic element then copy its shortcodes.

BUT, with the latest theme version, you can simply add global blocks in X > Global Blocks, build your content there and it will give you a very short shortcode that you can use.

Thanks!

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