How to add a filter to only show certain authors.
-
Hello,
My company is trying to add a way of filtering posts so that you can see only posts from certain authors, certain dates, etc.
Right now what I have working is that within the loop I am checking every time to see if it is the correct person.. the problem is that if I start with 20 posts and filter out only the ones that match certain criteria then I end up with only a few or possibly even none that match.
Any thoughts as to a better way to do it? I’m guessing that using wp_query might be helpful but not sure where to put it.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add a filter to only show certain authors.’ is closed to new replies.