155 posts Get in the spotlight
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
  • Has collected 10+ items on Envato Market
+8 more
FamousThemes
says

Could some one give me a little help here :)

I have the simple shortcode:

function services_box( $atts, $content = null) 

{ 

 extract(shortcode_atts(array( 

        'title'      => '', 

        ), $atts));

   return '<div class="services_content"><h6>'.$title.'</h6><p>'. do_shortcode($content) . 

 '</p></div>'; 

} 

add_shortcode('service', 'services_box'); 

Adding in editor the following:

[service title=Ut enim ad minim veniam] Sed do eiusmod tempor incididunt ut labore et Ut enim ad minim veniam, quis nostrud. [/service]

The problem is that the TITLE it shows only the first word from my phrase “Ut”, and stops when the space comes.

Ut

Sed do eiusmod tempor incididunt ut labore et Ut enim ad minim veniam, quis nostrud.

Does anyone knows how to fix the space issue?

Thanks.

1035 posts
  • Has referred 500+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Became a Top 20 Author of the Month
+8 more
ThemeBlvd
says

Have you tried using quotes?

[service title="Ut enim ad minim veniam"] Sed do eiusmod tempor incididunt ut labore et Ut enim ad minim veniam, quis nostrud. [/service]
2627 posts Put a Donk On It
  • Had an item that became a weekly top seller
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+11 more
ThemeProvince
says

You know you should have your short atts in double quotes. Like Jason said above ^

155 posts Get in the spotlight
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
  • Has collected 10+ items on Envato Market
+8 more
FamousThemes
says

Problem fixed.

Damn that was simple :), quotes fixed it. I gues I am really tired forgeting about the quotes.

Thanks ThemeBlvd and Phoenix

by
by
by
by
by
by