WordPress.org

Ready to get started?Download WordPress

Forums

Post with more than one day (4 posts)

  1. alvares
    Member
    Posted 1 year ago #

    Hello, I'm using the plugin Calendar Category (http://code.garyjones.co.uk/plugins/calendar-category) to filter posts of events and show them on the calendar. The problem is with the events that are held in more than one day because the post is only marked on the day it was published (I use a plugin to display future posts).
    I don't use a plugin event because I want to publish as a post.

    So I wondered how a post that may appear on the calendar marking more than a day.

  2. bcworkz
    Member
    Posted 1 year ago #

    This appears to simply extend the default calendar widget so you can filter by category. The calendar widget is intended to link to published blog posts and is not really intended to work for events. Thus it has no way to know how long an event lasts. Short of extending the widget again, all you can really do is add duplicate posts for each day of the event.

  3. alvares
    Member
    Posted 1 year ago #

    okay, thanks. It's as I suspected.
    Could you tell me if you have any way when creating a post, put a redirect to another post?
    So I can create posts and clicking on them opens a post pattern.

  4. bcworkz
    Member
    Posted 1 year ago #

    I'm not sure what you mean by opening a post pattern, but almost anything is possible in theory with custom coding.

    One idea that comes to mind is a custom post type that only contains a custom field in which you enter a permalink to the initial post with actual content. Clicking on it's entry in the calendar (or anywhere) would simply redirect to the permalink contained in the field.

    You could even have code automatically insert these redirect posts based on event dates in the main post's custom field, but if you go through that much effort, you may as well develop a calendar that works correctly for events.

Topic Closed

This topic has been closed to new replies.

About this Topic