• Resolved jaydokie

    (@jaydokie)


    I am having the most difficult time resolving this issue and so far no help. I use “Press this” to create posts from external site articles. Everything about it is perfect except for one thing. When creating the post, it pulls the excerpt into the Press This with a link saying via Http/name.com/ (example of where post originated from.) The via link does take you to the ULR where the article resides. Problem is when I go to my home page, the article title, image, and excerpt is present with […] (no link) and the via URL is not present. I want to automatically insert a “Read full story” linked to the external site article. The title of the post is linked to the external site article but not everyone knows that all you have to do is click on the title. My site is https://roundhousetalk.com. This is all I have left to get my home page looking how I want it to look. I have been posting this request for some time but no answer yet. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 360

    (@360gradfoto)

    Hello jaydokie,

    we can copy this modification from the twentytwelve theme.
    One question:
    how do you insert the external link? via customm fields?
    In that case you need to call the custom field within the function twentyeleven_continue_reading_link

    here is the code which needs to go into your theme`s functions.php

    /**
     * Returns a "Continue Reading" link for excerpts
     */
    function twentyeleven_continue_reading_link() {
    	return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) . '</a>';
    }
    
    /**
     * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyeleven_continue_reading_link().
     *
     */
    function twentyeleven_auto_excerpt_more( $more ) {
    	return ' &hellip;' . twentyeleven_continue_reading_link();
    }
    add_filter( 'excerpt_more', 'twentyeleven_auto_excerpt_more' );

    With these two functions you are able to modify the excerpt readmore link.
    Hope that helps ??
    cheers

    Thread Starter jaydokie

    (@jaydokie)

    360, I use WP’s “Press This” to capture posts. PT automatically displays in the post box an excerpt with a statement “via https://sitename.com/article name link….. (ex.) which is pre-linked. When you go to my post in WP Admin and view, it shows the excerpt like this one at my site: https://roundhousetalk.com/2012/12/treasury-and-the-irs-release-tribal-general-welfare-guidance-2/

    I did manually move the “via https://roundhousetalk.com/2012/12/treasury-and-the-irs-release-tribal-general-welfare-guidance-2/&#8221; up to the end of the excerpt as it was a couple of lines down from the end on the original post.

    I merely want something like “Read more” which when linked on takes you directly to the external link rather than to my site’s post of the article which then must be clicked again on the “via” statement to then finally get to the external site’s article. I have seen for excerpts at the end of the allotted word count of the article a […] which is not linked to anything. Thanks.

    Thread Starter jaydokie

    (@jaydokie)

    Looks like it’s resolved. Thanks very much for responding so quickly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Excerpt External Link "Read more"’ is closed to new replies.