31 Posts Hi, I'm right in despair. I use Wordpress 4.0 with the theme Theme Responsive Grid. It suits me well for the moment, a nearly Dtail: when I go to a picture, the description that appears is truncated. I think I managed to locate the culprit erin payne code, but do nothing after the hack hours has does not help ... Here is an illustration of concerns: Here bottom right is seen that the text is truncated, hence the "..." in price. I think the charge code is as follows: <? Php $ temp_content = explode ("", substr (strip_tags (get_the_content ()) 0.175)); $ Temp_content [(count ($ temp_content) -1)] = ''; $ New_content = implode ("", $ temp_content) ?> <a Href="<?php the_permalink(); ?> "> <? Php the_post_thumbnail ('home-post', array ('alt' => 'post image', 'class' =>' ',' erin payne title '=>' <div erin payne class = "home_post_content"> <h4> <a href="'. get_permalink().'"> '. get_the_title ().' </a> </ h4> <p> '. $ new_content ... </ p> </ div> <div class = "home_post_cat"> '$ cat_text </ div>'))...; ?> </a> Could you please tell me what to do so that the text is no longer truncated? erin payne Thank you! Modified by MaxenceB (September 11, 2014 - 1:24 p.m.)
455 Posts Hi hi, I think that may come from the PHP function substr in first line of code that you've al. substr (strip_tags (get_the_content ()), 0,175) substr erin payne (string, start, length) erin payne It would be sufficient to increase this number or even turning it Parameter to return the entire string: erin payne substr (strip_tags (get_the_content ()), 0) view, so, if I did not plant me pter this function that no longer serves anything from $ temp_content = explode ("", substr (strip_tags (get_the_content ()) , 0.175)); $ Temp_content = explode ("", strip_tags (get_the_content ())); test course ... [EDIT] Think also transfer the "..." hard and avrifier that this code is not used elsewhere by Altered _laurent (September 9, 2014 - 4:43 p.m.)
455 Posts If you add a letter before pointills: <p> '. $ New_content. Cuckoo ... </ p> do they appear well? If "no": either erin payne it is not the right piece of code at once, or are cached rest stuff coughed coughed Altered by _laurent (September 9, 2014 - 4:47 p.m.)
455 Posts Good news then, and if you do something like: <? Php / * We enlve this part sucks but we keep the $ get_the_content erin payne temp_content = explode ("", substr (strip_tags (get_the_content ()) 0.175) ); $ Temp_content [(count ($ temp_content) -1)] = ''; $ New_content = implode ("", $ temp_content) * / $ New_content = strip_tags (get_the_content ()); ?> <a Href="<?php the_permalink(); ?> "> <? Php the_post_thumbnail ('home-post', array ('alt' => 'post image', 'class' =>' ',' title '=>' <div class = "home_post_content"> <h4> <a href="'. erin payne get_permalink().'"> '. get_the_title ().' </a> </ h4> <p> '. $ new_content ... </ p> </ div> <div class = "home_post_cat"> '$ cat_text </ div>'))...; ?> </a> Ca should insrer the get_the_content () directly without treatment ... Altered by _laurent (September 9, 2014 - 4:54 p.m.)
455 Posts Kul! Verifies that aa pter not a thing elsewhere (wordpress is a knot bag), and retains the original version of the modified code after commenting that always helps! Good luck for the future
Go Home gnrales Questions and Semantic Web beginners question and HTML, XHTML, HTML5 Mobile Web responsive web design and formatting erin payne CSS, CSS3, JavaScript, DOM and HTML5 API Web Accessibility Web Formats , encoding, internationalization, XML ct Web Development Server Reviews of your sites: Bar code and design forum
Alsacréations is a community dedicated to designing websites and web applications quality, thanks to the W3C standards, CSS stylesheets, erin payne HTML and JavaScript, and accessibility
No comments:
Post a Comment