0 replies
I've done this in the past, but I'm having trouble this time. I'm trying to make it so when somebody clicks on a syndicated post (FeedWordPress), that it takes them first to the post page and then they click on it and are taken directly to the source of the content.

The instructions I've always followed are these:

Replace the following line of code in single.php

<?php get_header();?>

with this code:

<?php get_header();$post_guid = get_post(the_ID()); $guid = $post_guid->guid; if($guid=="") { $guid = get_permalink(); }?>

I had no problem doing that. However, the next step...

Replace the following line of code (if you do not find get_permalink, look for the_permalink):

get_permalink() ?>" rel="bookmark"

with this code:

print $guid; ?>" rel="nofollow"

The problem is, in the past I could find get or the permalink but there's no such line in the latest theme I exported in my single.php file.

I don't know any php so I don't even know how this works, I just always replaced the code and it did.

Any ideas? Thanks!
#content #syndication

Trending Topics