[Plugin: WP Easy Post Types] Date custom field displaying strangely
-
Hi,
Thanks for your plugin, its been immensely helpful.
One problem I’m running into is trying to display a date from the ‘datefield’ custom field. I have it set as a date (as in, I click the field and the calendar pops up), and I am calling the fields as I usually do:
<?php query_posts('post_type=tour'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); $venue = get_post_custom_values("venue"); $date = get_post_custom_values("date"); $tickets = get_post_custom_values("ticket_url"); $location = get_post_custom_values("location"); ?>
Then I call the date like this:
<?php echo $date[0]; ?>
All the other fields work perfectly as text fields, but then when I have a value of 07/08/2010 for the date, it spits out 1278547200. Just wondering if you know of a workaround for this issue or if I’m doing something wrong.
Thanks!
Tim
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: WP Easy Post Types] Date custom field displaying strangely’ is closed to new replies.