Title: team widget logo
Last modified: August 20, 2016

---

# team widget logo

 *  Resolved [nenerocker73](https://wordpress.org/support/users/nenerocker73/)
 * (@nenerocker73)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/)
 * hello, when you add the widget, select compact version and not shows the logo
   of the teams. Why?
 * Thx for your help!
 * [http://wordpress.org/extend/plugins/leaguemanager/](http://wordpress.org/extend/plugins/leaguemanager/)

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/team-widget-logo/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/team-widget-logo/page/2/?output_format=md)

 *  Plugin Author [LaMonte Forthun](https://wordpress.org/support/users/lamontef/)
 * (@lamontef)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628320)
 * Because the code isn’t in the widget to add the logo. If you want to test some
   for me, I’ll post it here and you can see if it works for you…
 *  Plugin Author [LaMonte Forthun](https://wordpress.org/support/users/lamontef/)
 * (@lamontef)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628342)
 * Head to his post, I put up some code you can test that gives a checkbox to add
   logos as well as designate a group to show with the widget.
 * [http://wordpress.org/support/topic/groups-in-championship?replies=10](http://wordpress.org/support/topic/groups-in-championship?replies=10)
 * Save a copy of your widgets.php file in your lib folder and replace it with the
   code posted, let me know how it works for you.
 *  Thread Starter [nenerocker73](https://wordpress.org/support/users/nenerocker73/)
 * (@nenerocker73)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628361)
 * ok friend, I hope :3
 *  Thread Starter [nenerocker73](https://wordpress.org/support/users/nenerocker73/)
 * (@nenerocker73)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628385)
 * works great, thanks friend! :3
 *  Plugin Author [LaMonte Forthun](https://wordpress.org/support/users/lamontef/)
 * (@lamontef)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628394)
 * You’re welcome. Work with it and let me know if anything comes up, I’ll plan 
   on committing the code if there aren’t any problems.
 *  Thread Starter [nenerocker73](https://wordpress.org/support/users/nenerocker73/)
 * (@nenerocker73)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628404)
 * hello again, you can set limits?
    for example, show only 10 teams ranked widget
 *  Plugin Author [LaMonte Forthun](https://wordpress.org/support/users/lamontef/)
 * (@lamontef)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628436)
 * Yeah, that could be added, give me some time before I have an update for it though,
   probably sometime in the next day or two.
 *  Thread Starter [nenerocker73](https://wordpress.org/support/users/nenerocker73/)
 * (@nenerocker73)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628441)
 * ok hope :3
 *  Thread Starter [nenerocker73](https://wordpress.org/support/users/nenerocker73/)
 * (@nenerocker73)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628535)
 * and friend, how do I show only 10 teams last?
 *  Plugin Author [LaMonte Forthun](https://wordpress.org/support/users/lamontef/)
 * (@lamontef)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628537)
 * Sorry, got busy…
 * In the template that you are using through the Widget (compact or extended) do
   the following:
 * Find:
 *     ```
       <?php if ( $teams ) : ?>
       <?php foreach( $teams AS $team ) : ?>
       <tr class='<?php echo $team->class ?>'>
       ```
   
 * and change it to:
 *     ```
       <?php if ( $teams ) : ?>
       $x=0;
       <?php foreach( $teams AS $team ) : ?>
       $x++;
       if ($x <= 10) {
       <tr class='<?php echo $team->class ?>'>
       ```
   
 * Then find (at the end):
 *     ```
       <?php endforeach; ?>
       <?php endif; ?>
       ```
   
 * and change it to:
 *     ```
       <?php endforeach; ?>
       }
       <?php endif; ?>
       ```
   
 * This line controls the number of teams to show:
 * if ($x <= 10) {
 * If you want 5 or 15, just change the ’10’
 *  Thread Starter [nenerocker73](https://wordpress.org/support/users/nenerocker73/)
 * (@nenerocker73)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628539)
 * ok lo probe, pero me gustaria que se le puede dar limites en el widget porque
   al postear tambien me muestra 10 teams, plis 🙂
 *  Plugin Author [LaMonte Forthun](https://wordpress.org/support/users/lamontef/)
 * (@lamontef)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628540)
 * There are a couple of things that we want to add to the Widget, so it’s possible…
 *  Thread Starter [nenerocker73](https://wordpress.org/support/users/nenerocker73/)
 * (@nenerocker73)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628553)
 * hello friend, update the version but now I get error in the widget.
 * This code [http://wordpress.org/support/topic/groups-in-championship?replies=10](http://wordpress.org/support/topic/groups-in-championship?replies=10)
   is no longer compatible with the version 3.8.8.1
 * could you fix it? please.
 * thank you!
 *  Plugin Author [LaMonte Forthun](https://wordpress.org/support/users/lamontef/)
 * (@lamontef)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628554)
 * What error are you getting?
 *  Thread Starter [nenerocker73](https://wordpress.org/support/users/nenerocker73/)
 * (@nenerocker73)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/team-widget-logo/#post-3628555)
 * I get the following error when I select “next & lost matches”.
 * > WordPress database error: [You have an error in your SQL syntax; check the 
   > manual that corresponds to your MySQL server version for the right syntax to
   > use near ‘`league_id` = ‘2’ AND `final` = ” AND `season`‘ at line 1]
   >  SELECT`
   > group`, `home_team`, `away_team`, DATE_FORMAT(`date`, ‘%Y-%m-%d %H:%i’) AS 
   > date, DATE_FORMAT(`date`, ‘%e’) AS day, DATE_FORMAT(`date`, ‘%c’) AS month,
   > DATE_FORMAT(`date`, ‘%Y’) AS year, DATE_FORMAT(`date`, ‘%H’) AS `hour`, DATE_FORMAT(`
   > date`, ‘%i’) AS `minutes`, `match_day`, `location`, `league_id`, `home_points`,`
   > away_points`, `winner_id`, `loser_id`, `post_id`, `season`, `id`, `custom` 
   > FROM wp_leaguemanager_matches WHERE `league_id` = ‘2’ AND `final` = ” AND `
   > season` = ‘2014’ AND TIMEDIFF(NOW(), `date`) <= 0 ORDER BY `date` ASC
   > WordPress database error: [You have an error in your SQL syntax; check the 
   > manual that corresponds to your MySQL server version for the right syntax to
   > use near ‘`league_id` = ‘2’ AND `final` = ” AND `season`‘ at line 1]
   >  SELECT`
   > group`, `home_team`, `away_team`, DATE_FORMAT(`date`, ‘%Y-%m-%d %H:%i’) AS 
   > date, DATE_FORMAT(`date`, ‘%e’) AS day, DATE_FORMAT(`date`, ‘%c’) AS month,
   > DATE_FORMAT(`date`, ‘%Y’) AS year, DATE_FORMAT(`date`, ‘%H’) AS `hour`, DATE_FORMAT(`
   > date`, ‘%i’) AS `minutes`, `match_day`, `location`, `league_id`, `home_points`,`
   > away_points`, `winner_id`, `loser_id`, `post_id`, `season`, `id`, `custom` 
   > FROM wp_leaguemanager_matches WHERE `league_id` = ‘2’ AND `final` = ” AND `
   > season` = ‘2014’ AND TIMEDIFF(NOW(), `date`) > 0 ORDER BY `date` DESC, `id`
   > DESC
 * but works in classification: version compact & version extended.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/team-widget-logo/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/team-widget-logo/page/2/?output_format=md)

The topic ‘team widget logo’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/leaguemanager.svg)
 * [LeagueManager](https://wordpress.org/plugins/leaguemanager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaguemanager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaguemanager/)
 * [Active Topics](https://wordpress.org/support/plugin/leaguemanager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaguemanager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaguemanager/reviews/)

 * 21 replies
 * 2 participants
 * Last reply from: [nenerocker73](https://wordpress.org/support/users/nenerocker73/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/team-widget-logo/page/2/#post-3628581)
 * Status: resolved