Viewing 1 replies (of 1 total)
  • Plugin Author Curtiss Grymala

    (@cgrymala)

    I will be releasing a new version of the plugin today, and it will allow you to do this.

    To accomplish this in the new version of the plugin, you’ll add code similar to the following to your theme’s functions.php file (or wherever you normally add extra functions that need to be used on your site):

    add_filter( 'post-content-shortcodes-title', 'add_link_to_pcs_content_title', 10, 3 );
    function add_link_to_pcs_content_title( $html, $title, $post=null ) {
        if ( ! is_object( $post ) ) {
            return $html;
        }
        return sprintf( '<h2><a href="%1$s">%2$s</a></h2>', apply_filters( 'the_permalink', $post->permalink ), $title );
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Excerpt Title and Thumbnail links?’ is closed to new replies.