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.
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
- Referred between 500 and 999 users
- Sold between 250 000 and 1 000 000 dollars
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]
- Attended a Community Meetup
- Author was Featured
- Beta Tester
- Bought between 10 and 49 items
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Has been a member for 3-4 years
- Interviewed on the Envato Notes blog
You know you should have your short atts in double quotes. Like Jason said above ^
Problem fixed.
Damn that was simple
, quotes fixed it. I gues I am really tired forgeting about the quotes.
Thanks ThemeBlvd and Phoenix
