I have seen many different parameters or arguments that can be passed to a query. For example, category_in, category_and term_id to name a few. Some of these can be found by using print_r to print out the object. ( If I have that right ). Others like the category__in I have been unable to find in...
If you had a wish list where you freely could choose which PHP modules (5.3.3) you were able to choose for your server: Which one would you absolutely want & take?
@StephenHarris Depends on how the repo goes. With some it makes no sense to add pull requests, so the nr doesnt matter. But normally - after a talk with toscho a half year ago (or something like that) - I use yyyy-mm-dd.hhii.
If I want to send pull requests, then with what the original author uses. For the official repo (only 1 plugin), I use main.sub.patch.-nr.
@kaiser Cool, I'm making some alterations to fullCalendar for Event Organiser. Will probably be sending pull requests, and will almost certainly be merging changes of the original repo into it - makes the version-ing potentially confusing :)
@StephenHarris Only use it in one project, but planning to do that all over. Saves a lot of time (not that git wouldn't eat hours and days like "week-not-fed"-kitty) :P
I wonder why we never see the loop_start/*_end actions in use...
@kaiser I nearly did in an answer for a question about determining when you were in the main loop or not before I realised that I could just use in_the_loop()
@toscho I got pagination working in this answer: wordpress.stackexchange.com/questions/67732/… ..but just for personal experiments I was looking for best practice ways to give that fake page a post_type to run conditionals etc.
I have multiple stage process that integrates complex faceting into WP queries. Problem is - the deeper I get the more fuzzy I become on how it is supposed to work and I could use a guideline rather than being inventive (and digging myself a hole).
General stages I have (pseudo-code, but close t...
@Rarst Please do when you get the chance, very interested to see more... this is like a rabbit hole... how deep does she go? (driving me nuts sometimes)
@marfarma Not really. I left it as it was and did the rest via PHP.
Realized that this would be just too heavy: Summed up in an easy way: * Get parent taxon (+count if no children) * » Get child taxons + count * » Get posts with title + permalink ( + maybe last update date or publish date) Would be hard to do with SQL. Too many IF/ELSE/THEN for what I can do in SQL.
@kaiser I probably would have done it that way myself. I figured you had an unstated reason for wanting to do it in one query. I think I'll work out the subquery, though, purely for my own satisfaction.
@kaiser Can you confirm the data you were seeing - each post in a sub-taxon was also assigned the parent taxon, resulting in each post being included twice - which was why you added the 'distinct' condition?
@kaiser What would you get back from a call wp_get_post_terms( $post_id, 'your_taxonomy' ) for the post 'Arbeitsrect in der Praxis', 'management' & 'mitarbeiter' or just 'mitarbeiter'?
@kaiser I'm trying to determine what data is present in the table, so I just want to know if wp_get_post_terms returns one or two items in the case were the post is assigned to a subcategory.
@kaiser that's what I wanted to know. -- I know you've already moved on, but can you try this: gist.github.com/3899883 in a mysql session and tell me if it fixed the 0 parent problem -- just so I can let it rest.
@kaiser just fixed the gist - if you got it already, please compare with current
@kaiser I swear I won't ask again, even if it's still not working
Should scripts/styles be dequeued and then deregistered, or is simply ONLY deregistering the script/style sufficient enough (If the particualr script/style is not needed)?
I've always just used deregister, and it appears to be fine.
Ok Im tearing my hair out..none of my ajax functions work for logged out users even though I'm using wp_ajax_nopriv. What in the heck is wrong with this...
@kaiser I've got working code up on the answer: wordpress.stackexchange.com/a/69303/4645 -- you can update your function to correspond, for completeness, if you like. Why did we never consider that it's the exact same code if the post_type is post and the taxonomy is category?
If you paste a Tweet URL to your post, Wordpress will nicely render it.
But if I load posts via Ajax, the URL gets replaced by a Blockquote, but not with the nicely rendered one. The class of the Blockquote is twitter-tweet and not, as intended twitter-tweet-rendered with all that extra stuff.
...
@Rarst I think I remember that tweet... from memory, use pre_get_post and $query->set/get - unless I've misunderstood / remembering something completely different :)
@Rarst so query->get/set... :). Maybe I'm not getting the complexity of wordpress.stackexchange.com/questions/53629/… but for custom data, I would parse it at pre_get_posts(or maybe parse_query) and then use posts_where filters to alter the (main) query...
@Aarthi I imagine clarify if SE wants to sponsor at all?.. if no then that's over. if yes then we probably need kick Jane Wells very fast who probably has budget long done, but hopefully not against taking late money :)
@PolluxKhafra Check every file that loads this or parts of this and take a verrrry(!!!) careful look if you ain't got ! is_admin() anywhere. I was also tearing my hair about this issue, but AJAX is served via admin-ajax.php, which is not available outside admin » conclusion: I was locking myself out.
@marfarma Hey, Thanks for all the hard work. And yes, maybe it's a -head»desk- situation. I'll try when I finished some other stuff.
I feel like if I'm 6 again and standing in between mum and dad ... "Do it like this!" ... "Do it like that!" ... me: "Wtf... make a decision together and tell me later."
@toscho and @Rarst Do the world a favor and let me be your only child. Everything else wouldn't work out well.
@Rarst When you already are on the task of answering old questions: What the heck is this question about? Read it so often, but wasn't able to get behind it.
@kaiser they can... but first they had [yet another] branch manager change so I had to re-do paperwork explaining source of funds... then they told me my electronic request was wrong and denied, when it fact it is peachy... then I couldn't get anyont to pick up the damn phone and gave up
I had previous office trained to do this stuff without even having to involve their brains... now I have to train new office all over again
Stack Exchange has some of the best Moderators around — seriously — and that is due in no small part to the communities who scrutinize and vote in our Moderator elections. We have a rather formal process for electing moderators, but up until now the process for removing a moderator h...
@Rarst I know. OMV and Raiffeisen bought nearly everything that was for sale in the east. But: consider switching there. They take notes very serious and you can in any case report to their central in Austria.
If poking with a stick doesn't work: Let others poke them with a baseball bat.