• Resolved bearstevens

    (@bearstevens)


    Is there any way to change the id for shortcodes? Instead of them just having a number like [wpcode id=”60880″]?

    • This topic was modified 2 years, 7 months ago by bearstevens.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @bearstevens,

    There’s no built-in way to do that in the current version of the plugin.

    Currently, if you have a PHP function you want to call you can try defining your own shortcode using add_shortcode and have that code set to “Run Everywhere”.

    Yeah, I think this feature is very important, or at least you have to make a fixed shortcode that will never change even after exporting and importing.
    I tried to migrate my site from localhost to live server using export and import method, but the shortcodes ruin my site, it’s because while I am exporting the snippetcodes then importing them on another place the shortcodes will totally changes and won’t work, I have to rebuild my site by inserting new shortcodes after migration and it take a long time because my site has thousands of shortcodes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom id for shortcodes?’ is closed to new replies.