WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: LeagueManager] Adding Widget In Page (5 posts)

  1. adzeds
    Member
    Posted 5 years ago #

    Is it possible to call the next/last match widget using PHP so that I can embed it into my homepage?

  2. Kolja
    Member
    Posted 5 years ago #

    Will be in the next release

  3. adzeds
    Member
    Posted 5 years ago #

    Cool. When can we expect the next update!

    Before next Friday?

  4. Kolja
    Member
    Posted 5 years ago #

    Most likely the next version will have to wait until September, because I am on vacation soon.

  5. beveraii
    Member
    Posted 5 years ago #

    I needed to add the previous and next matches into my template and so was hoping for something like this...but i've managed to get around it using the 'Team' template.

    1. Copy the 'team.php' file from the 'view' folder within the leaguemanager plugin
    2. Create a folder within your theme called 'leaguemanager' and paste the copied 'team.php file' and rename it to, for example, 'team-sidebar.php'.
    3. In your template, add <?php leaguemanager_team( 1, array('template' => 'sidebar') ) ?> with the 1 being your team ID, and 'sidebar' being a reference to the copied file in your theme.

    Once you've done these three things, you can edit your 'team-sidebar.php' file as required.

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic