Forums

[Plugin: WP-o-Matic] How do you include a link to the original article? (4 posts)

  1. filmmakerdream
    Member
    Posted 3 years ago #

    I know that this topic was mentioned before, but I am still VERY confused. I just set up a blog aggregator site at http://www.deafvillage.com/news using wip-o-matic. I would like to be able to link each posts automatically to the original article. The FAQ was not clear -

    How do I link to the original site/article?

    Use the post template feature (example: {content} <p>Link to the original site</p>)

    WHERE do I exactly put this code? Do I put it in the index.php page under one of the themes folders? I just would like to know which page I should put this code in.

    Thanks for your help!

  2. filmmakerdream
    Member
    Posted 3 years ago #

    Ok. I figured out how to insert the code, but the link is not working. You'll notice that "Go to Source" is unclickable. How can I fix this problem? Thanks!

  3. kellya29
    Member
    Posted 3 years ago #

    Hi, I was wondering how you were able to open your feeds in a new window. I can't figure it out and I saw that your site is working. Any help would be appreciated. Thanks!

  4. amathenia
    Member
    Posted 2 years ago #

    Ok here is what I did --

    I edited the plugin PHP file and changed the // Template parse to this ...

    // Template parse
        $vars = array(
          '{content}',
          '{title}',
          '{permalink}',
          '{feedurl}',
          '{feedtitle}',
          '{feedlogo}',
          '{campaigntitle}',
          '{campaignid}',
          '{campaignslug}',
          '{readmore}'
        );
    
        $replace = array(
          $content,
          $item->get_title(),
          $item->get_link(),
          $feed->url,
          $feed->title,
          $feed->logo,
          $campaign->title,
          $campaign->id,
          $campaign->slug,
          $item->get_link()
        );

    The in the wp-o-matic options added a custom template as follows

    {content} <a href="{readmore}">Read more ... </a>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags