Skip Navigation

[Resolved] Display Post of Active Users Only

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by henryH 6 years, 3 months ago.

Author
Posts
#1045551

It would be great if you could suggest some solution for below requirement.

In my site I have defined three status for the user "New", "Active" and "Inactive". I want to display post of "Active Users" only. The post publish by "Inactive" users should not be shown on the blog page.

Everything is done only "display Post" of "Active Users" is left.

#1069103

That status, is it a User Custom Field?

In that case you can for example use a User View, and add a Query filter as:

Select items with field:
wpcf-status is a string equal to your_value

Then, add another View, for Posts.
There, add this Query Filter

Select posts with the author set by the parent User View.

Now you can insert the last View to the First User View and insert that User View to a Page for example.
It'll display the Posts of the Users with status "your_value".

Blog page is an archive, so you can insert that View to a Layout applied to the Home Archive, for example.

#1077149

yes