Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #906554

    Rad
    Moderator

    Hi there,

    That’s just a sample why the content is randomly displaying shortcodes in the different part of the layout. Let’s say your shortcode break other shortcodes, hence, other shortcodes opening and closing don’t match no more and that’s what happens.

    It’s not removed, there is no functionality like that even from the old version. It’s a link, the shortcode is not possible on links from the very start. What I’m not sure is how did you make it work, I have an older version too and it’s not really possible. Please don’t use the shortcode within the link, and what’s the purpose of the shortcode? Maybe I can think some work around, but I can’t guarantee.

    Thanks!

    #909103

    jasonribeiro
    Participant

    Based on the query at the end of the link, the page that is being linked to will display different information…which is why the shortcode pulls in that query once a user is logged in. Let me know if you can think of a work around. Thank you!

    #910366

    Christian
    Moderator

    Hey Jason,

    Sorry for the confusion here. Though your setup worked before, we do not support it since then as Cornerstone’s element attributes are essentially shortcode attributes so you should not insert a shortcode within a shortcode attribute. The reason why it worked is because the WordPress Shortcode API is not strict before. WordPress has made changes to its Shortcode API so your setup might have been affected. This is not Cornerstone’s restriction.

    What you want to achieve is technically possible. Regretfully however, that would require custom development which falls outside the scope of our support. Basically, you will want to create your own Cornerstone element so you could integrate your third party code. See https://community.theme.co/kb/cornerstone-custom-elements/ for guidance. If you’re not comfortable working with code, you might want to hire a web developer to build one for you.

    Thank you for understanding.