theshine
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Looking to Sort Custom Fields by Meta Data ValuesHey moderator,
If I wanted to post my calendar code somewhere on www.remarpro.com, what would be the best place? It’s not quite a plugin, it’s more of a hack or just creative use of an already existing plugin.Forum: Fixing WordPress
In reply to: Looking to Sort Custom Fields by Meta Data ValuesFinally figured it out. The query_posts was only bringing back 15 records (as is set in my options), it had nothing to do with the date of the show in “start date” custom field. Just so happened that the ones at the end started with larger numbers. You can check it out in all its glory over here.
Forum: Fixing WordPress
In reply to: Looking to Sort Custom Fields by Meta Data ValuesSo I got went ahead and added a date field, but unfortunately and not so surprisingly it didn’t like any dates that started with numbers 10-12 and refused to pull them as part of the query. The weird thing is, is that when I went back to change the metadata to a month that starts with 1-9, it refused to pull that post again no matter what I did.
Forum: Fixing WordPress
In reply to: Looking to Sort Custom Fields by Meta Data ValuesOK, thanks. (Your anchor tag in the above post appears to be a bit messed up.)
Forum: Fixing WordPress
In reply to: Looking to Sort Custom Fields by Meta Data ValuesYeah, I guess I could do that. I was using custom drop down fields to avoid keying in invalid date format, but I can switch to a textbox, it will probably make my life easier (as long it sorts).
Forum: Fixing WordPress
In reply to: Looking to Sort Custom Fields by Meta Data ValuesThat’s the thing, if I just use something like:
query_posts('meta_key=band%20name');
Then I’m back to where I started as I don’t want to order by post date (which is what I think you mean by “date”), I want to order by the date I have specified in the custom fields, which does not correspond to the order in which I am posting events.
Forum: Fixing WordPress
In reply to: Looking to Sort Custom Fields by Meta Data ValuesGot it to sort by one meta_key value using this syntax:
query_posts('meta_key=band%20name&orderby=meta_value&meta_key=month&order=ASC');
But I really need it to sort by month, day and year. Doesn’t seem to be possible using simple query_posts().