• I have this function:

    <?php
    if(!$post->post_excerpt) {
    the_content();
    } else {
    the_excerpt();
    }
    ?>

    How can i insert permalink in the_excerpt ? I try to modify

    <a href="the_permalink()" rel="bookmark">the_excerpt()</a>;

    but i receive an error

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Insert permalink in a code function’ is closed to new replies.