Viewing 5 replies - 1 through 5 (of 5 total)
  • If your Loop in your page template try this:

    <?php
    $link = get_post_meta($post->ID, 'syndication permalink', true);
    if ($link){
    echo '<a href="'.$link.'">Read original story</a>';
    }
    ?>
    Thread Starter marcellodj

    (@marcellodj)

    Thanks Michael it works ! but with this mod:
    syndication permalink = syndication_permalink
    i think you have mistyped the field name.
    So the full code to show the link to original article from the rss source will be:

    <?php
    $link = get_post_meta($post->ID, 'syndication_permalink', true);
    if ($link){
    echo '<a href="'.$link.'">Read original story</a>';
    }
    ?>

    I placed it in single.php after <?php the_content(); ?> .
    Hope this help anyone in the same trouble.

    Actually we can use the following code:
    <a href="<?php the_syndication_permalink() ?>">Read original story</a>
    But,No matter what code, Some URL will be wrong.
    For example,
    The syndication permalink is aaa.com/bbb/xxxx/
    The link in my page is kekeguoguo.com/bbb/xxxx/
    Of course ,I thinking of the httpd.ini.But I dont know how to fix it.

    Code from marcellodj works fine. How do you get this to open on a new page?

    I now can’t get either of these to work and probably if I did it was a fluke. Can anyone help here?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show the link of a syndicated article’ is closed to new replies.