• Resolved Igor Ilgiyaev

    (@bigshow)


    Hey
    First of all thank you for the plugin finally somethig that works great from all the plugins for shortcodes.
    I have an issue with outputting this in the shortcode:
    echo do_shortcode(“[fusion_builder_row_inner]’.$guests $bedrooms $beds $sofas $baths $size.'[/fusion_builder_row_inner]”);

    and the code leaving ‘. content .’

    thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @bigshow,

    Thank you! We’re happy to hear you find the plugin useful.

    I think in your case you need to use the same quotes to avoid that, so instead of having:

    
    echo do_shortcode("[fusion_builder_row_inner]'.$guests $bedrooms $beds $sofas $baths $size.'[/fusion_builder_row_inner]");
    

    You should use the same quotes as in the beginning and end like this:

    
    echo do_shortcode( "[fusion_builder_row_inner]" . $guests . $bedrooms . $beds . $sofas . $baths . $size . "[/fusion_builder_row_inner]" );
    

    Notice that I also added . between the variables as that’s needed to concatenate strings.

    This will only work if the $guest, $bedroom, etc variables are defined above this code and are strings.

    Thread Starter Igor Ilgiyaev

    (@bigshow)

    Awesome thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code leaves this ” ‘. ” i the html’ is closed to new replies.