• somosguatemala

    (@somosguatemala)


    i cant seem to get the exerpt to show the read more at the end of each post.

    I added this function to my function.php file:
    PHP Code:

    add_filter( 'excerpt_more', 'add_excerpt_more' );
    /**
     * Add Read More to end of post excerpt.
     *
     * @author Brian Gardner
     * @link https://dev.studiopress.com/add-read-more.htm
     */
    function add_excerpt_more( $more ) {
        return '<a href="' . get_permalink() . '" rel="nofollow">Leer Mas...</a>';
    }

    this is the code of the template
    PHP Code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    and the link: https://www.somosguatemala.com/blog/

    what should i do to add the read more after the excerpt?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to put read more at end of my posts?’ is closed to new replies.