WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP-o-Matic] Unlinked template text in teaser

[Plugin: WP-o-Matic] Unlinked template text in teaser

  • 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/

  • The topic ‘[Plugin: WP-o-Matic] Unlinked template text in teaser’ is closed to new replies.