• Resolved hny

    (@honeyloudlr)


    Is it possible to add a shortcode inside the maxbutton url?

    We are wanting to display the current page slug, we created a shortcode.

Viewing 1 replies (of 1 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    Hi!,

    No you can’t use a shortcode in a shortcode in WordPress.

    In the PRO version we have support for using several types of variables, see the documentation.

    In the Free version you can either use the Shortcode in PHP to set the URL

    do_shortcode('[maxbutton id=1 URL=" . $url . "]'); 

    or use one of the URL hooks :

    $url = apply_filters('mb-url', $url, $data['url']);  
    
    $url = apply_filters('mb-url-' . $button_id, $url, $data['url']);
Viewing 1 replies (of 1 total)
  • The topic ‘Question’ is closed to new replies.