Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #1107395

    Michael R
    Participant

    Is it possible to create a php page using cornerstone that will allow me to enter a few php snippets directly into an element?

    I have tried a few php WordPress plugins but all work with short codes and I cant use a php shortcode within a cornerstone shortcode.

    I just need a page that will change based on the URL parameters that lead a visitor to land on the page. These parameters determine the button links and form code.

    Can you please help?

    #1107400

    Michael R
    Participant
    This reply has been marked as private.
    #1107506

    Joao
    Moderator

    Hi There,

    You can use an Insert PHP Widget and use the widget element in Cornerstone.

    You can also paste shortcodes on the RAW Element on Cornerstone.

    Hope it helps

    Joao

    #1107756

    Michael R
    Participant
    This reply has been marked as private.
    #1108232

    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Regretfully what you are doing will not work. Shortcodes doesn’t accept any php code. It will just treat it like a normal text. Please do check out this article how you can use php with a shortcode:
    https://wordpress.org/support/topic/php-code-inside-shortcodes
    https://wordpress.org/support/topic/php-inside-shortcode

    As this is all custom development, regretfully we won’t be able to assist further. Custom development is outside the scope of our support. We’re happy to provide advice and get you started in the right direction, but you would still be responsible for the implementation.

    Thank you for your understanding.