• Resolved Richard Slade

    (@raslade)


    Hi Guido

    Thanks for taking your time to build and maintain your plugins, they’re all very, simple and useful – a perfect combination. Wish more developers did the same.

    Anyway, I’m trying to show all events, past and future from one category, so far:

    [vsel-past-events date_label="%s" event_cat="funding" posts_per_page=8]

    Any new events obviously won’t list though and the date doesn’t appear to be hidden either?

    Any ideas?
    thanks
    Richard

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi Richard,

    Thanks, you’re welcome!

    The only way to display past and upcoming events on the same page, you should add both shortcodes on the same page.

    
    [vsel event_cat="funding"]
    [vsel-past-events event_cat="funding"]
    

    But this will not look nice, because of the pagination underneath each of both event lists. And maybe even cause problems (multiple loops).

    If you want to hide date, you should check this via the settingspage.

    Guido

    Thread Starter Richard Slade

    (@raslade)

    Thanks for the quick reply. I doubt that will work then as it will look odd with two sets of pagination. I’ll use past-events to ensure all appear.

    Yup date modification sorted.

    Thank you
    Richard

    Plugin Author Guido

    (@guido07111975)

    Hi,

    I agree, because it’s not build to display past and upcoming events on the same page. But a new shortcode to display all events might be a nice addition.

    Guido

    Thread Starter Richard Slade

    (@raslade)

    Sounds like a useful addition. If you get a chance could you also consider adding a category column in the admin events post list. I’ve added via a plugin at the moment but would rather it be built in.

    Thanks
    Richard

    Plugin Author Guido

    (@guido07111975)

    Hi Richard,

    There’s a problem with listing the categories in my event list: if user clicks a category it will list events from that category using theme file archive.php (or category.php). This means plugin styling is not supported anymore. So events will be listed like posts (and without event-meta such as event date, location, etc).

    The same applies to the single event listing (theme file single.php is used) but I was able to hook into this file and added styling and event-meta. To hook into archive.php is a lot harder..

    Guido

    Thread Starter Richard Slade

    (@raslade)

    Hi Guido

    I mean’t in the backend WP admin interface. I’ve got a site that needs to be handed over to the client and i’m using your plugin to manage a few different listings so have added a category column to make it easier for the client to see which post is relevant to the associated page.

    Richard

    Plugin Author Guido

    (@guido07111975)

    Hi,

    I understand what you mean, but if I add this feature the category page should display properly in frontend too… and that’s not the case. The only way to list them correctly is via the shortcode + the category attribute. That’s why I did not add a category column in backend. Don’t want to cause confusion.

    Guido

    Thread Starter Richard Slade

    (@raslade)

    Hi

    Ah yes that makes sense. Didn’t realise the two are interlinked.

    Richard

    Plugin Author Guido

    (@guido07111975)

    Hi Richard,

    Plugin update: list both upcoming and past events in 1 list. Use shortcode:

    
    [vsel-all-events]
    

    (or via the widget)

    Guido

    Thread Starter Richard Slade

    (@raslade)

    Hi Guido

    That’s fantastic, thank you for adding this feature – it will make life much easier now.

    Richard

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Show past and future events in category’ is closed to new replies.