substr(the_title()
-
Hi, in one of topic, esmi, suggest to use substr(the_title(). I try to use this with post title at footer vidget, but without effects. Any ideas?
<div class="bottom-left"> <h3><?php _e('Recent Posts'); ?></h3> <ul> <?php $myposts = get_posts('numberposts=6'); foreach($myposts as $post) : ?> <li><a href="<?php the_permalink(); ?>"><?php substr(the_title(), 0, 12); ?> ...</a></li> <?php endforeach; ?> </ul> </div>this giving normal the_title from the table
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘substr(the_title()’ is closed to new replies.