Closed pixeline closed 7 years ago
Hi there!
I'm sure other users will take advantage of your work, so thanks for sharing! You might want to leave a comment on Phil's blog post to let him and his visitors know what you built.
Actually, I've been working on a native WPP class that does exactly this. You might want to check it out since it'll be the "stock" way of doing it in the (near) future
Actually, I've been working on a native WPP class that does exactly this. You might want to check it out since it'll be the "stock" way of doing it in the (near) future
Ah, I was secretly hoping you'd say that :) It's definitely useful because, personally I am used to the WP_Query API and that would not require me to learn another one if I need to build a custom loop. I'll have a closer look in the coming days. Thanks!
Hello @cabrerahector and thank you very much for the work you've put into the plugin. This is my modest contribution, perhaps it will help other folks in similar situation.
In this project I'm busy on, we need the widget but also a place in the template where the output is hardcoded, with specific parameters and layout. I wanted to have access on the raw selection of posts returned by the plugin on an instance basis. (Using the filter as suggested in the documentation modifies the output for all instances).
I tweaked Phil Smart's example class to use the filter you provided. Here is the modified class, which returns an array of WP objects that I can then manipulate as i see fit. Handy.
In the template:
Sample output: