Support » Plugin: Mobble Shortcodes » How to use a shortcode within a mobble shortcode

  • Resolved Runey


    Hi – and thanks for taking the time to create this great plugin.

    I have a shortcode to create a button on my site. It takes the form [button]button stuff[/button].

    I only want this to display on mobile devices so added your plugin and put
    [is_mobile][button]button stuff[/button][/is_mobile] on the page.

    It correctly removes the buttons from desktop versions, however, on mobile versions instead of showing the buttons, it shows the literal text ie “[button]button stuff[/button]”.

    Is there a way to run shortcodes within mobble shortcodes?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Philip John



    Version 0.2 which should shortly be available allows the use of shortcodes within shortcodes, such as your example.


    With version .2.1 installed I tried
    [is_not_mobile][new_royalslider id=”1″][/new_royalslider][/is_not_mobile]
    [is_not_mobile][new_royalslider id=”1″][/is_not_mobile]

    It corretcly does not show anything on mobile but on the desktop browser it only shows as
    [new_royalslider id=”1″]
    instead of showing the slider associated with the shortcode.

    Any news on this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use a shortcode within a mobble shortcode’ is closed to new replies.