Feature Request: Query Builder - Author filter "Current Logged In User"

Hey,

I am playing with beta 8 at the moment and fist I want to thank you for your amazing work. Everything works pretty fine and I absolutely love the new features and possibilities. The new post element and query builder gives us so much options.

For the query builder I would have one feature request: You now enabled to filter for users. This is great. But I think it would make so much sense to make a filter for “current logged in” user. With this option you could easily build something to show only posts/custom post types which have been created by the current logged in user or show everything except the own posts. This would be great for membership/community websites.

Maybe this is possible :slight_smile: Would be great!

Best regards

Patrick

Hey Patrick! Thanks for chiming in here. Great idea! I was trying this out, and it looks like Dynamic Content isn’t working in the Query String provider type, but ideally you’d be able to just do something like this:

post_type="post"&author={{dc:user:id}}

That would pull all posts written by the currently logged in user (you could set any type you want). I’ll get this fixed for the next update.

@alexander, I know you guys are working on all the documentation still. But do you have any outside resources you can point to for structuring query strings? When I’ve googled it before, I haven’t found anything terribly helpful.

I wonder if WordPress is trying to move away from it or what’s going on there because I can’t really find anything either. It used to be more apparent. Here are some pointers

Hopefully that helps for now!

2 Likes

Awesome, thanks!

You’re welcome!

Update: Next patch supports Dynamic Content in the query string.

1 Like