[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-05-04
5
Medium Priority
?
285 Views
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...
0
Comment
Question by:nvp7777
  • 2
3 Comments
 
LVL 31

Expert Comment

by:gwkg
ID: 35703753
Wouldn't it be easier to use a plugin that allows you to add events directly to the calendar?

http://wordpress.org/extend/plugins/wordpress-event-calendar/screenshots/

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

http://www.1stwebdesigner.com/wordpress/best-calendar-plugins-wordpress/
0
 

Author Comment

by:nvp7777
ID: 35703760
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.
0
 
LVL 31

Accepted Solution

by:
gwkg earned 2000 total points
ID: 35707402
It looks like the wordpress event calendar plugin I linked to uses a custom post type to create the event

 screenshot-3.png

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

register_post_type(

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

'supports' => array (
                        'title',
                        'editor',
                        'thumbnail',
                        'excerpt',
                                'custom-fields'                        
                  )

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.

http://net.tutsplus.com/tutorials/wordpress/rock-solid-wordpress-3-0-themes-using-custom-post-types/
http://blog.genuineinteractive.com/post/adding-custom-field-gui-to-custom-post-types-wordpress-3.aspx
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses
Course of the Month18 days, 21 hours left to enroll

834 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