WordPress.org

Ready to get started?Download WordPress

Forums

Mobble Shortcodes
[resolved] How to use a shortcode within a mobble shortcode (3 posts)

  1. Runey
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/plugins/mobble-shortcodes/

  2. Philip John
    Member
    Plugin Author

    Posted 1 year ago #

    Hiya,

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

    Cheers,
    Phil

  3. mauicomp
    Member
    Posted 11 months ago #

    With version .2.1 installed I tried
    [is_not_mobile][new_royalslider id="1"][/new_royalslider][/is_not_mobile]
    and
    [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?
    Thanks,
    Jes

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic