The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

KIA Subtitle
Adding subtitle to widget (4 posts)

  1. danicra
    Posted 2 years ago #

    I need to add subtitle code to WordPress Popular Posts Widget. This is the part of the code that I need to change but I don't know how.

    $content .= "<li>{$thumb}<b><a href=\"{$permalink}\" title=\"{$title}\" class=\"wpp-post-title\" target=\"".$this->user_ops['tools']['link']['target']."\">{$title_sub}</b><strong>if(function_exists('the_subtitle')) the_subtitle();</strong></a> {$excerpt}<span class=\"post-stats\">{$stats}</span>{$rating}</li>" . "\n";

    I don't know PHP and I've tried that but I know that something is wrong.


  2. danicra
    Posted 2 years ago #

    I also have tried this:

    $content .= "<li>{$thumb}<b><a href=\"{$permalink}\" title=\"{$title}\" class=\"wpp-post-title\" target=\"".$this->user_ops['tools']['link']['target']."\">{$title_sub}</b><strong><?php if(function_exists('the_subtitle')) the_subtitle();?></strong></a> {$excerpt}<span class=\"post-stats\">{$stats}</span>{$rating}</li>" . "\n";

  3. helgatheviking
    Plugin Author

    Posted 2 years ago #

    Sorry, I don't support custom implementations. If you need something updated in the plugin, let me know.

  4. helgatheviking
    Plugin Author

    Posted 2 years ago #

    Just reviewing this, but I am guessing you need to RETURN the value of the subtitle and not ECHO it. Therefore you might want to try get_the_subtitle() or the_subtitle( null, null, false ) which come out to something similar. Good luck.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • KIA Subtitle
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.