Forums

[Plugin: Gigs Calendar] Place Calendar outside the "Loop" (2 posts)

  1. AbZhiBilt
    Member
    Posted 2 years ago #

    Hi,
    I want to use the Gigs Calendar Plugin to display a lsit of gigs outside the loop. In fact the calendar should be permanetly displayed on a specific location.

    Problem is due to lack of documentation i cant find the place where i need to change code. I think the problem is that the function which displays the calendar is hooked to the "the_content" function which is only used in the loop.

    Hope someone can help

  2. schwarzbox
    Member
    Posted 2 years ago #

    Yes.

    But you could register another hook that inserts the calendar where you want it to be.

    You could start by copying the

    function display($in) {..}

    gigs-calendar.php and rename it to something like my_display. Then add your filter for whatever hook you need:

    add_filter('[hook_name_needed]', array('dtc_gigs', 'my_display'));

Topic Closed

This topic has been closed to new replies.

About this Topic