TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: The WordPress Query Generator, create WP loops in plain English

58 pointsby irunbackwardsalmost 12 years ago

12 comments

woahalmost 12 years ago
It's unfortunate that this is necessary. Other frameworks have normal iterators, the for loop, maybe a while loop as well. They just show items from the db. Simple. WP has somehow fetishized this simple affair into "The Loop"- 3 different functions, all with slightly different behavior and syntax, with about 40 arbitrary defaults each that must be overridden if you want basic, bare bones behavior. It's no surprise that WP is the only framework that needs an online generator for something that is usually so simple. I could get into "The Post" as well, but I'll leave that for another time.
评论 #5738350 未加载
评论 #5738734 未加载
评论 #5738118 未加载
评论 #5738126 未加载
jwarrenalmost 12 years ago
Very cute! Love the sentence-based construction.<p>This would be really strong if it allowed you to generate more complex queries. For instance, you can't select more than one post status, select a custom post type, or use meta fields as part of the query.<p>I get that it's meant to provide a nice starting point, but value for <i>me</i> (and I get that I might not be a target) would be a natural language abstraction of the more complex queries.
评论 #5738298 未加载
评论 #5740573 未加载
shloimealmost 12 years ago
I could definitely see myself using something like this. It needs some more complex loops, but it's a great MVP. Cheers.
评论 #5738929 未加载
jonhelleralmost 12 years ago
I think this is awesome. Obviously it's not geared towards intermediate or higher level WordPress developers, but for someone like my wife who is just digging into WordPress looping it's a wonderful learning tool.
Jake232almost 12 years ago
Great, however I can't help but think that 10minutes spent making the response AJAX would make the app much more user-friendly/responsive and easier to iterate through changes quickly.
评论 #5738341 未加载
ChrisClarkalmost 12 years ago
On Chrome I can't delete 'anyone', 'all' or 'any' from the text fields. I can only type new characters in front of the default text. On the initial load, 'anyone' is also cut off, looks like 'anyor'.<p>Other than that, this looks like a very nice site for a non-programmer or new programmer who wants to customize a theme they found.
评论 #5738292 未加载
评论 #5738822 未加载
ereckersalmost 12 years ago
Not the greatest experience on iPad 2. Back on the desktop, it doesn't seem to clear values, only adds them (I'm playing with chaning posts, page, etc..)<p>Here's a good WP Query resource I've been using to structure marginally complex queries:<p><pre><code> https://gist.github.com/luetkemj/2023628</code></pre>
ramenalmost 12 years ago
Here is a library I wrote to make querying WordPress easier: <a href="https://github.com/ramen/wp-find" rel="nofollow">https://github.com/ramen/wp-find</a><p>It has a more conventional builder-style API that may answer the complaints of those wishing for a more straightforward way to write loops.
评论 #5740458 未加载
cmwelshalmost 12 years ago
I wrote a WordPress plugin that allows you to use the WP_Query class as an iterator:<p><a href="https://github.com/cmwelsh/zesty-wp-query" rel="nofollow">https://github.com/cmwelsh/zesty-wp-query</a>
IgorPartolaalmost 12 years ago
'posts_per_page' =&#62; 'all' is not a valid value.
评论 #5740054 未加载
jjszalmost 12 years ago
I noticed the Wordpress theme Salient using this. It´s much easier for noobs.
评论 #5739124 未加载
st3redstripealmost 12 years ago
Font is huge!
评论 #5738763 未加载