Php help – exerpt
-
Im basically wanting to add a link for the excerpt… the code im using is below.
<?php if (is_home()) {
the_excerpt();
} elseif (is_single()) {
the_content();
} elseif (is_archive() || is_search()) {
the_excerpt();
}
?>I’ve tried adding href inside { and }, and it just prints the permalink.
What code should i be using? thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Php help – exerpt’ is closed to new replies.