WordPress.org

Ready to get started?Download WordPress

Forums

WP-o-Matic
Unlinked template text in teaser (1 post)

  1. websupportguy
    Member
    Posted 3 years ago #

    I have created a custom post template which works OK but it is printing the custom text without the URL in the teaser text.

    The custom template code I used is:

    <a href="{readmore}">Read original story at {feedtitle}</a> {content}

    To support this, I modified wpomatic.php around line 717 as follows:

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

    Would appreciate some help to figure out what I did wrong. See what I mean at http://social-media-watch.com/category/test/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags