forum share
   textsms      forum    

Articole/intrebari

INDEX \ Articole/intrebari \ Limit excerpt function for WordPress

Limit excerpt function for WordPress

text_format+  text_format-


/* Limit description func. /.. */ function get_excerpt() { $excerpt = get_the_content(); $excerpt = preg_replace(" (\[.*?\])",'',$excerpt); $excerpt = strip_shortcodes($excerpt); $excerpt = strip_tags($excerpt); $excerpt = substr($excerpt, 0, 185); $excerpt = substr($excerpt, 0, strripos($excerpt, " ")); $excerpt = trim(preg_replace( '/\s+/', ' ', $excerpt)); $excerpt = $excerpt.' ... '; return $excerpt; }





update Ultima actualizare: 23/01/2017
done Informatiile cuprinse in aceasta sectiune sunt verificate si actualizate periodic.

list Articole recente
arrow_back Inapoi


© 2019 EVIDWEB. Toate drepturile rezervate. Design: EVIDWEB
Certified partner with GlobeSSL

share  forum  textsms