Title: shortcode leaguearchive
Last modified: July 20, 2017

---

# shortcode leaguearchive

 *  [elpre](https://wordpress.org/support/users/elpre/)
 * (@elpre)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/shortcode-leaguearchive/)
 * Hello,
 * I’ve a problem with the shortcode [leaguearchive league_id=ID]
 * No matter what ID I put, always appears the first one like as if you put [leaguearchive
   league_id=1]
 * In shortcodes.php I see
    $league_id = ( isset($_GET[‘league_id’]) && !empty($
   _GET[‘league_id’]) ) ? intval($_GET[‘league_id’]) : $leagues[0]->id;
 * I think that always get “$leagues[0]->id;” but if I change this line by this 
   other:
    $league_id = $_GET[‘league_id’] the page not load.
 * Somebody with the same problem and solution???
 * Than you very much

The topic ‘shortcode leaguearchive’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [elpre](https://wordpress.org/support/users/elpre/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/shortcode-leaguearchive/)
 * Status: not resolved