How to call the events list using php

Home Forums Calendar Products Events Calendar PRO How to call the events list using php

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #56570
    james
    Participant

    I am having trouble finding out how to call the events list widget using php. Any help would be great. Thanks!

    #56640
    snorton
    Participant

    The basic premise of this is to use WP’s template tag to display an arbitrary widget.
    Here’s the syntax for the php:
    the_widget($widget, $instance, $args);

    The Events List widget is called TribeEventsListWidget, so you would do something basically like this:
    the_widget(‘TribeEventsListWidget’);
    You can throw some $args in there to adjust the display of your widget if you’re trying to add it to a template or by some other means, but this will basically get you what you need.

    #56644
    james
    Participant

    Thanks, before you responded, i couldn’t find the widget name anywhere, so I just registered a new widget area and inserted it into the php code that way. Thanks for the response!

    #56649
    snorton
    Participant

    No problem. I know the people that work these forums are swamped right now, and this is something I have worked on that I know worked for me.
    For future reference, I have found http://docs.tri.be/ to be a tremendous asset for the free version and the pro version of the Events Calendar Plugin…. especially when I can’t get a response as quick as I’d like.

    #56700
    Leah
    Member

    Hey snorton, thanks again for stepping in here! We are, as you said, really swamped with support and trying our best- but we sure appreciate the help! James, are you all set here?

    ~Leah

    #56748
    james
    Participant

    yep all set, thanks guys, great product!

    #979668
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to call the events list using php’ is closed to new replies.