Support » Plugin: Ultimate Posts Widget » The `$title` and `$title_link` used out of template

  • 1) The $title and $title_link used out of template, BTW I access to $title in the template, but show title in output twice!
    Also I can not access the title_link in the template for custom it.
    I thinks this part of widget’s code, must move to template file:

    
    if ( $title ) {
      echo $before_title;
      if ( $title_link ) echo "<a href='$title_link'>";
      echo $title;
      if ( $title_link ) echo '</a>';
      echo $after_title;
    }
    

    OR at least, set a HTML tag with specific class (ex. upw_widget_title) for $title, for possibility set custom CSS for it.

    2) And another issue is about $before_widget and $after_widget and $before_title and $after_title. In widget’s code use these, but I don’t know how can I set values for these variables for effective in widget?!

    • This topic was modified 2 years, 5 months ago by  .
    • This topic was modified 2 years, 5 months ago by  .
    • This topic was modified 2 years, 5 months ago by  .
  • The topic ‘The `$title` and `$title_link` used out of template’ is closed to new replies.