• Hi,

    Does anybody know how I can convert the excerpts and also dates in my blog (“market insights”) page into links directing to the post itself like the headers with the blog post titles have?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • You can either modify the theme file or use a custom PHP code snippet to make the excerpt clickable. Here’s the code you can use:

    function make_excerpt_clickable($excerpt) {
    global $post;
    return '<a href="' . get_permalink($post->ID) . '">' . $excerpt . '</a>';
    }
    add_filter('the_excerpt', 'make_excerpt_clickable');

    Should make the excerpt clickable and will redirect to the post page

Viewing 1 replies (of 1 total)

The topic ‘Make Blog Page Excerpts Links’ is closed to new replies.