Function for Linking to the original source
-
I think I have a simple question…
I don’t want images included in the feed excerpt but I want to add the featured image to posts in my search-results-page. So I disabled all images in rssmi settings and added the featured image to the posts using a different plugin. Then I added this code to my search-results-page template.<?php if ( has_post_thumbnail() ) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail(); ?> </a> <?php endif; ?>
It adds the thumbnail of my featured image but “the_permalink” is the wrong link. That links back to the post on my site. I want it to link back to the original source/webpage.
Can anyone give me the correct code to replace “the_permalink”.
I would love to have a list of all the functions needed to pull in different meta-data from rssmi into my search-results-page as well, although I’ve figured out most of them.
Thanks!
Chris
- The topic ‘Function for Linking to the original source’ is closed to new replies.