go41

the info you need to know


von Joern
Keine Kommentare

using Code:<?php echo wp_trim_words( get_the_excerpt(), 25, '' ); ?> is good as long you do not need more words than are in the_excerptyou can also use wp_trim_words with get_the_content like this:Code:echo wp_trim_words( get_the_content(), 60 );to get 60 wordsBUT! there will be all shortcodes visible in this truncated text!To strip the…


von Joern
Keine Kommentare

I'd like to refer you to the WordBress Codex site abour author templates:http://codex.wordpress.org/Author_Templatesas a base for an author template take your archive.php and copy it to a file called author.php.To show the author near a post you need <?php the_author(); ?> like:<p>This post was written by <?php the_author(); ?></p>You also…