Hyperlinking in PHP [Need Help]
Here is the theme_excerpt code that's in my theme's functions.php
function theme_excerpt(=5) { = get_permalink(); = ; = explode(' ', strip_tags(get_the_excerpt()), ); if (count()>=) { array_pop(); = implode(" ",).' more...'; } else { = implode(" ",); } = apply_filters('the_content', ); = preg_replace('`[[^]]*]`','',); echo '<p>'..'</p>'; } |
Here is an example of the function name used in the index.php:
<a href="<?php the_permalink();?>"><?php the_title();?></a> |
Jimmy