45 reputation
5
bio website
location
age
visits member for 3 years, 5 months
seen Mar 10 '13 at 10:29

Jul
6
comment Saving two categories from two dropdowns in front end posting form
If I put $_POST['sub_cat'], all I get is the subcategory, but not the parent. i.e. wp_set_post_categories($post_id, $_POST['sub_cat']);
Jul
6
comment Saving two categories from two dropdowns in front end posting form
I've tried $_POST['main_cat','sub_cat'], $_POST['main_cat']['sub_cat'] and addind brackets [] after the field names, ie. name="main_cat[]", but so far nothing has worked.
Jul
5
comment Saving two categories from two dropdowns in front end posting form
Yeah, by no means it's polished. Thanks for the suggestions, will use them down the line. What about the category problem though? I've understood you can only have one "value" in $_POST['main_cat'], so no 'main_cat','sub_cat', etc. I get error from them anyway.
Jul
5
comment Saving two categories from two dropdowns in front end posting form
Sure, I've updated the question.
Jul
5
revised Saving two categories from two dropdowns in front end posting form
Added the posting form as a whole
Jul
5
revised Saving two categories from two dropdowns in front end posting form
added 135 characters in body
Jul
5
accepted Displaying posts with only upcoming dates according their custom field date value
Jul
5
comment Displaying posts with only upcoming dates according their custom field date value
Sorry, I've totally forgot to mark the answer as right. Thank you very much!
Jul
5
asked Saving two categories from two dropdowns in front end posting form
Apr
25
comment Displaying posts with only upcoming dates according their custom field date value
Updated the question, sorry for the delay.
Apr
25
revised Displaying posts with only upcoming dates according their custom field date value
Update on the progress
Apr
25
comment Displaying posts with only upcoming dates according their custom field date value
Still no cigar. Simply nothing appears, very weird.
Apr
25
comment Displaying posts with only upcoming dates according their custom field date value
Thank you for the suggestions, great points in using date or numeric instead of >. However, no matter if I use WP-Query or not, I can't get the posts to display. No errors or anything, the sidebar is just empty. Something wrong with my query?
Apr
25
asked Displaying posts with only upcoming dates according their custom field date value
Apr
10
accepted taxonomy query to output slugs instead IDs
Apr
10
comment taxonomy query to output slugs instead IDs
Thank you for pointing out the errors, guess that's what you get when you work with something for too long. The search works like it should now with your code so thank you very much.
Apr
10
asked taxonomy query to output slugs instead IDs
Mar
27
comment ASC and DESC separately from orderby
Very nice, thank you. Got it working perfectly with the updated code.
Mar
27
accepted ASC and DESC separately from orderby
Mar
26
comment ASC and DESC separately from orderby
Thank you, this seems to be very close, but when the orderby is title the url goes to default ?orderby=date&order=asc when I try to select either asc or desc.