Full Event Calendar archive – category buttons instead of dropdown

WordPress Event Management, Calendars & Registration Forums General Question Full Event Calendar archive – category buttons instead of dropdown

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 8 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25257

    I’m looking for a way to get the Category dropdown to look like buttons instead of a dropdown. Radio buttons or inline links could work here.

    https://www.dropbox.com/s/lku4yz1570ixdmx/inline-buttons.png?dl=0

    Our developer can create his own links, but we’re not sure how to hook them into the EO filtering system.

    As an alternative, would FacetWP work with the full calendar view shortcode? That would be even better/easier.

    • This topic was modified 8 years, 3 months ago by  Suzanne Goodwin.
    Suzanne Goodwin
    #25301

    Hi Suzanne,

    Here’s how you can filter whether an event is rendered:

    addFilter( 'eventorganiser.fullcalendar_render_event', function( render, event, element, view ){
           //You will need to check the 'status' of the buttons 
           //to decide if the event should be displayed.
           //If you want the event hidden set render to false;
           console.log( event ); //for debugging, the contents of the event object.
           return render;
    });
    

    You’ll probably need to load that snippet of JavaScript quite late.

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.