Title: [Plugin: FeedWordPress] permalinks in single.php
Last modified: August 19, 2016

---

# [Plugin: FeedWordPress] permalinks in single.php

 *  Resolved [cosmicjellybaby](https://wordpress.org/support/users/cosmicjellybaby/)
 * (@cosmicjellybaby)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-feedwordpress-permalinks-in-singlephp/)
 * 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.
 * [http://wordpress.org/extend/plugins/feedwordpress/](http://wordpress.org/extend/plugins/feedwordpress/)

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

 *  [kesseret](https://wordpress.org/support/users/kesseret/)
 * (@kesseret)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-feedwordpress-permalinks-in-singlephp/#post-1541116)
 * 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](https://wordpress.org/support/users/cosmicjellybaby/)
 * (@cosmicjellybaby)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-feedwordpress-permalinks-in-singlephp/#post-1541159)
 * 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 :-]
 *  [norozzad](https://wordpress.org/support/users/norozzad/)
 * (@norozzad)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-feedwordpress-permalinks-in-singlephp/#post-1541220)
 * 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.

## Tags

 * [ifelse](https://wordpress.org/support/topic-tag/ifelse/)

 * 3 replies
 * 3 participants
 * Last reply from: [norozzad](https://wordpress.org/support/users/norozzad/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-feedwordpress-permalinks-in-singlephp/#post-1541220)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
