172 reputation
723
bio website
location
age
visits member for 2 years, 3 months
seen May 1 at 16:45
stats profile views 89

Apr
28
comment Adding another state (spam, reject, approve) to wordpress comments?
How would I do that with my goal in mind? Can you maybe be a little preciser in explaing how to use comment meta for my aim?
Mar
18
comment Add classname to the_category() function?
Thank you, perfect. apply_filters() however didn't work for me. Had to use add_filter()
Mar
7
comment Custom Theme Fields in Settings Menu - apply filters to one of those fields?
Thank you, perfect! I'll give it a read. However for the direct answer to my question I accepted the answer of @Vinod Dalvi
Feb
20
comment get_the_excerpt() with fallback like the_excerpt()
thank you, but how do I use that in my sample code above. How is the_excerpt used if an excerpt is set, but the stripped/trimmed content used when no excerpt is set? What is the cleanes solution for that?
Feb
20
comment WP_Query: query posts by ids from array?
perfect! thank you, how could i miss that!
Jan
22
comment Get post-meta value of all custom-posts - lowest to highest year-count?
Thank you. Perfect.
Jan
22
comment Get post-meta value of all custom-posts - lowest to highest year-count?
Thank you, however that doesn't work for me. echo $out is always empty. Moreover I updated my question with the foreach loop I do on $years. I do not want to implode the array. Any last ideas why the code you posted doesn't work for me? I tried it exaclty like you suggested but echo $out doesn't show anything.
Jan
21
comment Get post-meta value of all custom-posts - lowest to highest year-count?
Alright, thank you. My $args array looks like this … $args = array( 'post_type' => 'wr_event', 'posts_per_page' => -1, // show all posts 'meta_key' => 'event_date', ); Is that a problem performansewise? I'm looping through all posts a second time on this page?
Jan
14
comment Loop for custom-post-type comparing taxonomy terms for “related” posts?
Wow, thank you. Exactly what I needed. In this case I ask even for the last thing I'd like to have. Is it also possible to not only return the "last" 5 posts, but a random set of the posts. So I want 5 related projects, but not simply the latest ones but a random set.
Jan
14
comment Loop for custom-post-type comparing taxonomy terms for “related” posts?
Thank you, perfect. One more question. Is it possible to rewrite the function so, that I have an if-statement in there that returns false if no posts where matched? So I want to use the function in a second different manner. See my update in the question. -> So I don't want to print the section "Related Projects" if there are no projects matched.
Jan
3
comment loop through custom post-type with two meta_keys
Perfect, thank you!
Dec
8
comment Custom Loop for custom post type. Compare by meta_value?
Thank you, however still no luck. Again no posts are returned. See my update above. Is this the right way I'm using this meta_query? I'll try the Debug Bar plugin tomorrow. Thank you in the meantime. Please make sure to check back here :)
Dec
8
comment Custom Loop for custom post type. Compare by meta_value?
Well, thank you. My event_date is stored as timestamp. However either way I don't get ANY results from this loop. There are no posts returned. I'm always inside the "else" statement. As if there were no posts. There are no posts found <- see my little update above.
Oct
8
comment encoded search terms with %20
Well, the only functions that could have anything to do with this are those … cl.ly/code/121u2I2F2X2K However I tried to comment-out them one by one and it didn't make a difference. And as you can see of course the search-form.php template that is posted above in my question.
Oct
8
comment encoded search terms with %20
It's not fault of any plugins as it seems. Any other idea what could cause that?
Oct
6
comment encoded search terms with %20
But this seems weird. Has never happened to me on other Wordpress Sites I made. Or at least it worked with the search terms. In my case the search.php holds Cool%20Car as term and not Cool Car as it's supposed to. I know the url must be encoded but why are the terms on my search.php site still encoded?
Sep
28
comment Empty meta-box returns publishdate if no value is set?
And what I don't get either is when I'm testing for isset($_POST['wr_event_end_date'])? inside my save_details() function and call a die('event-end-date is set!);` and leave the field blank it still dies! So even though the field is empty (and nothing should be set to the field) the condition is true! Why is that? Nothing is getting saved to the database but the condition is true – see my update above!
Sep
28
comment Empty meta-box returns publishdate if no value is set?
Ok, thank you but I still don't get it. Please bear with me. I do have it set as text_date … but I'm converting it to a timestamp when I save it to the database! I need to do so, because I'm sorting my events by this timestamp and can't do it with a fully formatted date. I completely got rid of my update_post_meta() function for the "event_end_date" but nothing is getting saved to the database automatically!? Are you sure this is saved automatically. I'm inspecting ma database table after I save the event-end-date field but nothing is in the db.
Sep
28
comment Empty meta-box returns publishdate if no value is set?
… I need to convert this timestamp back to a german date like "25. September 2012" … And that's why in this case I need the save_details() function for this particular field. I just need to find a way not to create and save a timestamp when the value of the input is empty. Does that sound complicated?
Sep
28
comment Empty meta-box returns publishdate if no value is set?
Ok, thank you. However the real problem in my case might be that I 'type' => 'text_date', as the input for my event_end_date field and then I'm converting it to a timestamp! And I need to convert it to a timestamp because I need to parse it as a german date on the frontend. I know there is also a field type of the library that provides a timestamp. However I want my backend to use german date formatting when I select a date in the date-picker. When saving the date I want to convert it to a timestamp (because I need this value for sorting stuff) and inside my get_event_end_date() function