WordPress.org

Ready to get started?Download WordPress

Forums

Looking for Very Specific Calendar Plugin (7 posts)

  1. JeremyPPC
    Member
    Posted 5 years ago #

    Hi! I'm putting together a new website for my church, and I'm using WordPress as CMS. I need a calendar and events posting, and was hoping someone could help me either track down a plugin or get some tips on writing my own code! I have a workaround for now, but I'd love some of the steps automated.

    Here's what I've got in mind functionality-wise:

    • Need forms in the admin panel to fill in Event name, Date & Time, Location (if any), and a brief Description.
    • Need this to generate a post, with categories/tags selected from the form.
    • Need repeating event functionality.
    • Also need month-viewed calendar functionality.
    • No JavaScript!

    I'm using Google Calendar for the church's web-calendar, which has all the needed fields of information. Maybe there's a way to parse the GCal XML feed into what I'm looking for?

    Right now I'm writing events as posts, publishing a month prior to the date (so they're ordered correctly). I added in some expiration code using a custom field to get posts to hide after they're over. I update the GCal seperately. It's more hassle than necessary, and I need to be able to hand this off to non-techies eventually.

    It seems like WordPress should be more than capable of parsing posts and a calendar out of some custom fields, or parse posts out of GCal's XML. I just don't know how to do it!

    Thanks for any help you can offer.

  2. Kieran O'Shea
    Member
    Posted 5 years ago #

    My calendar plugin does all of these things with the exception of creating posts. Seeing as you can create posts yourself I'd give it a shot and see how you get on with it

    http://wordpress.org/extend/plugins/calendar

  3. JeremyPPC
    Member
    Posted 5 years ago #

    The automated aspect is what's so important. I need to hand it off to "teh newbz" (to use the vernacular), so it's got to be as simple as possible.

    Your plugin is very impressive though. Repeating events is rare from what I've seen. Would it be possible/not-too-complicated to take data inputted into your calendar plugin from the database and have it automatically show up elsewhere? I can learn some new PHP tricks, but my capacity is limited.

  4. Kieran O'Shea
    Member
    Posted 5 years ago #

    What data exactly are you looking to put into these posts? And you're looking for the posts to disappear after a certain period of time?

  5. JeremyPPC
    Member
    Posted 5 years ago #

    I need each post to show the title of the event, the day/date/time, location, a lagniappe field would be nice (for a web address, cost, or other random thing), and a description. So if I'm showing the church's weekly dinner it'd be:

    <h2><a href="[single post view]">Weekly Dinner</a></h2>
    <p><em>Wednesday, October 15 at 6 pm<br />
    Fellowship Hall<br />
    $5 per person</em></p>
    
    <p>[description, like the menu or whatever]</p>

    Then the monthly calendar stuff, like your plugin does. I'm looking for it all to draw from the same inputs. It doesn't seem like it should be that hard, but I guess I wouldn't really know.

  6. Kieran O'Shea
    Member
    Posted 5 years ago #

    All you'd need to do is call the wp_insert_post() function to author a new post when you fill in event details. My plugin provides all the fields you ask for so you'd just have to put them in two places by passing them to the function.

    Details on how to use this function is provided here:
    http://codex.wordpress.org/Function_Reference/wp_insert_post

    From your post I deduce that you don't want to delete such a post after the event is over which simplifies the solution to my calendar and an alteration as described above.

    Should you so wish you could also cause the edit event function in my calendar to fire off to wp_insert_post() too such that modifications to the event would be reflected in the post, but obviously this is not essential, at least initially while you get things working.

  7. beercheck
    Member
    Posted 5 years ago #

    Hi Kieran --

    Man, I love your calendar, but it's falling short on me on two counts:

    1) Same as the overall topic of this thread, I'd like this to automatically insert posts (just as the Events Calendar does). I think you've set me on basically the right path here, but I'm not a php programmer and it'll take a load of trial and error to get there, at the very least.

    2) I need more granular control over calendar management than the all-or-nothing that is currently provided (as far as I can tell). I need for numerous contributors (or author or whichever) to be able to enter events, but I do NOT want them to be able to edit/delete events that others have entered. The best scenario would be to mimick the basic WP post functionality, but simply allowing "write" access to one user level, with "update/delete" access opened up for another, would work well enough.

    Any thoughts? Can you shove me in a certain direction?

    Thanks
    Kevin

Topic Closed

This topic has been closed to new replies.

About this Topic