Exclude recent upcoming events from a specific category

Home Forums Calendar Products Events Calendar PRO Exclude recent upcoming events from a specific category

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43796
    Prateek
    Participant

    I am looking for a function to show 4 upcoming events one featured(should be able to control) and 3 normal events. Presently I am using 2 widgets,
    1) Next Event Widget to show the Featured upcoming Event
    2) Event List advance widget to show the normal upcoming events.
    Is there any simplest way to do so? I have created 2 categories Featured and Normal and I am trying to exclude the Featured events to get repeat in normal category, by doing so I am facing a problem I can’t pre select anything as whatever I select as Featured get omitted from the Normal. You can check the same on http://www.rkmkhar.org

    Your suggestion will really help me.

    Thanks in Advance
    Pratz

    #43813
    Jonah
    Participant

    Hi Pratz,

    This is not a bad solution but if it were me I’d do a little more work to figure out something more elegant. I won’t be able to help you with all the steps, but another way you could do it is by creating a custom field checkbox to indicate an event is featured. This is an excellent plugin for adding custom fields to WordPress: http://www.advancedcustomfields.com/ – Then, in either widget, but you’ll probably just need to use the list widget, you’ll check for the custom field and if it’s checked, modify the display, add a class or do something else to indicate the event is featured. To edit the list widget code you need to make a copy of /wp-content/plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php and place in an ‘events’ folder in your theme.

    I hope that helps, but let me know if you have any questions.

    – Jonah

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Exclude recent upcoming events from a specific category’ is closed to new replies.