The date-time tag has no wiki summary.
4
votes
3answers
4k views
Custom Post Type Archives by Date and Taxonomy
Lets use the classic example of a custom post type called "movies", with its own taxonomy called "genre".
By registering the custom post type (with a "movie" slug), the permalinks are already set up ...
2
votes
2answers
2k views
Query between two meta values?
How do I limit the query by two custom meta fields, a start date and an end date? This is what my data looks like:
meta_key | meta_value |
------------------------|
start_date | 20100131 | //Jan ...
7
votes
3answers
7k views
Order by meta value or date?
Got a custom field called startDate but its only on a few events. I was wondering if it isn't set for a post I could use post_date to generate the posts list?
// if meta_key _postmeta.startDate isn't ...
3
votes
2answers
62 views
What is the best workaround for supporting all existing DATEs?
I want to make a weblog that has with every date 1 or more weblog posts, e.g.:
Januari 24 Year 41 : Roman Emperor Caligula was murdered by Cassius Chaerea and the disgruntled Praetorian Guards. ...
2
votes
1answer
1k views
Plugin for changing a post's category based on it's post date?
Is there a plugin for Wordpress that will change a post's category based on how long that post has existed?
I have seen other Wordpress plugins that use a library called "simple pie" to manage a ...
9
votes
3answers
5k views
How to get WordPress Time Zone setting?
Can someone tell me how to get the time zone that is set in the WordPress Admin?
For example, if the blog is set to Eastern time, I need this exact string to print out:
US/Eastern
This is for a ...
4
votes
4answers
969 views
order posts by date like craigslist
the image is worth a thousand words. take a look at it.
you know how craigslist has posts organized by date ..ex
Tue 3
post links for tuesday
Wed 4
post links for wed
Thurs 5
post links for ...
1
vote
3answers
929 views
Why time functions show invalid time zone when using 'c' time format?
These are the functions I use in my theme to display the "entry-meta" which includes published and last modified dates (among others) of an article:
// Shows Author and Published Date
if ( ! ...
0
votes
3answers
2k views
Display posts starting from today date
How to display a list of posts from today date to future?
I am actually using this code:
<div id="news-loop">
<?php if (have_posts()) : ?>
<?php ...
3
votes
4answers
3k views
Sorting a query by custom field date
EDIT: Reworded the question for more clarity
I'm trying to sort by custom meta box data, which I am converting to a date using the strtotime function, but I'm having some difficulty.
My chief ...
3
votes
3answers
635 views
Set Custom Post Type title to the Post's Date
I have a custom post type, called 'status' and I have disabled 'title' in the post type. Right now it's setting all posts to have the title "Auto Draft". I want to set up a way to set the title to be ...
2
votes
1answer
187 views
Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
QUESTION
This is following a previous question that was graciously answered by Milo earlier here - How to sort CPT by custom meta value (date), and return posts month by month
In short, I'm having ...
2
votes
1answer
837 views
How to Delete Old Comments by Date?
I run a contest/giveaway blog at www.mommylivingthelifeofriley.com and currently have over 160,000 comments on 1100 posts. I would like to find a way to delete all comments from my site which are ...
1
vote
1answer
657 views
SQL query to delete comments older than 90 days?
I'm working on a site that has 150,000 comments with an obvious hit in performance; is there an SQL query that can delete all comments older than say 90 days? They're not spam comments, and they are ...
1
vote
1answer
207 views
Why does this echo values in the wrong order?
I'm sure there is a simple reason/answer for this: Why does
echo 'Archive for '. the_time('Y');
give me 2010Archive for? I had expected it would give me
Archive for 2010