Is there a way to make a wordpress calendar which pulls dates from custom field

Posted on 2011-05-04
Last Modified: 2012-05-11
I'm using the custom fields template and I would like to know if there is a way or plugin that can display posts in a monthly calendar based on the date provided in a custom field.  NOT based on the date the post is published.

I'm using the custom field template plugin to derive the custom field...
Question by:nvp7777
    LVL 31

    Expert Comment

    Wouldn't it be easier to use a plugin that allows you to add events directly to the calendar?

    Here is a good list of calendar plugins for Wordpress.  One may be what you are looking for.

    Author Comment

    Thanks GWKG, The problem is that what I'm doing is two-fold, one is that all the data that is being collected in all the fields is being tabled into a sortable/exportable grid, but the second fold is that I want to be able to use the data from one of the fields that the user is entering (the date field) to organize the posts into a calendar... any thoughts? thanks for your help.
    LVL 31

    Accepted Solution

    It looks like the wordpress event calendar plugin I linked to uses a custom post type to create the event


    If none of the plugins in that list look like they will do what you want, maybe you can just enable custom fields for the custom posts that plugin creates.

    Find where that plugin registers the post type


    and add 'custom-fields' to the 'supports' params so it looks something like

    'supports' => array (

    Then you can pull the data from the custom event posts that plugin creates and make your grid.

    I'd understand while you would want to avoid all that since you would have to manually update the plugin so not to overwrite your edit.  But if there are no other ready made solutions out there it might be the easiest way.

    If you're not familar with custom post types, they basically behave the same as posts and your code to pull out the fields will be the same.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now