Bart Dabek
Post count: 24
|
Just want to make sure there is no better way… I’m finding it hard to explore the framework in terms of best practices… is there no way to search through all the methods on the site?
anyway here is the line
foreach ($wf->type($type)->posts(“posts_per_page=3&orderby=meta_value_num&meta_key=post_views_count&order=desc”) as $item) :
Thanks!
|
traversal
Post count: 207
|
Hey Bart,
There are multiple ways to do it really, but a slightly more concise way you can run that query is like so:
http://pastebin.com/Ln3tVUrq
Sorry about the documentation searching. Will add some kind of search to it soon, on top of the many other things to be done. It has been quite the challenge (and time sink) to build documentation for a framework as vast as this one.
|
Bart Dabek
Post count: 24
|
Thanks 🙂 It’s really quite a joy to use… just need to ramp up on how everything gets done… code looks much cleaner… one thing that does concern me is how will others find using it… it takes quite a bit of ramp to get used to it from the WP ways
|
traversal
Post count: 207
|
Thanks Bart. I totally agree, it is a very different way of building the code. Good to see you’re giving it a good shot as well. I like to think of it as being similar to the way jQuery enhances JavaScript – it had a reasonable learning curve too, but once you get used to it, you can do a lot without needing to lookup documentation all the time.
I think it’s an interesting API though, and always good to have more options. And it is interesting to hear your thoughts about learning curve – it’s hard for me to empathise with that, having built the thing 🙂
|