Forums

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

  1. adzeds
    Member
    Posted 4 months ago #

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

  2. koelle
    Member
    Posted 3 months ago #

    Will be in the next release

  3. adzeds
    Member
    Posted 3 months ago #

    Cool. When can we expect the next update!

    Before next Friday?

  4. koelle
    Member
    Posted 3 months ago #

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

  5. beveraii
    Member
    Posted 3 months 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.

Reply

You must log in to post.

About this Topic