• Resolved cosmicjellybaby

    (@cosmicjellybaby)


    Hi this is probably a really simple issue, but boy is it bugging me. I’m running FWP with the permalinks pointing to the local copy on all pages. However I want to change things in the single template and have the title as a permalink pointing to the original source. I’ve tried to edit the code but the best I can do is to have the title repeated, once as a permalink and the other just as the title. It’s probably just my lack of knowledge of the if… else… statement that is spoiling things. Any way, here’s what I’ve got:

    <?php if (is_syndicated()): ?>
                                   <h2><a href="<?php the_syndication_permalink(); ?>"><?php the_title(); ?></a></h2>
                            <?php endif; ?>
                                   <h2><?php the_title(); ?></h2>

    Is this enough code to be able to tell me what’s wrong? It’s the only thing that I have changed in the original single.php

    Many thanks in anticipation of a speedy answer to my query.

    https://www.ads-software.com/extend/plugins/feedwordpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • ok, try this????

    <?php if (is_syndicated()) : ?><a href="<?php the_syndication_permalink(); ?>"><?php the_title(); ?> </a><?php else : ?><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><?php endif; ?>

    What this does is allow me to have a perma link setting to point to the local copy but in the template to have the title of the post link to the actual blog post that was syndicated.

    If the object was locally written then the title will point to the local copy permalink. I think if you have an if you must have an else.

    NOTE: I am not a programmer nor do I pretend to be one on the Internet. Your mileage may vary! Good luck!

    Thread Starter cosmicjellybaby

    (@cosmicjellybaby)

    Hi there, many thanks for your response. As is usual for me, not long after I posted the question I managed to hit on the correct form of words for my google query and found an answer to my problem. Things are working fine now :-]

    Hi, When I click on the link, the site of origin at my site to load.
    I is not good in English too, forgive me
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: FeedWordPress] permalinks in single.php’ is closed to new replies.