Support » Plugin: WP RSS Multi Importer » How to make post title link to RSS source?

  • Resolved Account

    (@nestsiarenka)



    Hello,

    I have custom post type to which fetched feed items are posted. I display the autoposts as a list, where title is following

    <a itemprop="url" href="<?php the_permalink();?>" title="<?php printf('%s', the_title_attribute('echo=0')); ?>" rel="bookmark"><?php the_title();?></a>

    When I click on the title, the post is opened. Is it possible to change title URL, so that feed source is opened instead?

    Thanks in advance!

    https://wordpress.org/plugins/wp-rss-multi-importer/

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

    (@nestsiarenka)

    In fact, I need the function to replace permalink here to fetched article URL

    href=”<?php the_permalink();?>

    Account

    (@nestsiarenka)

    I found a similar question, but the the solution seems to beoutdated

    Account

    (@nestsiarenka)

    Solved by following code in template loop:

    <a>get_var("SELECT meta_value FROM $wpdb->postmeta WHERE post_id= '$post->ID'"));?>" title="<?php printf('%s', the_title_attribute('echo=0')); ?>" rel="bookmark"><?php the_title();?></a>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make post title link to RSS source?’ is closed to new replies.