How can I create a view that displays the most viewed post on top, the less seen on the bottom of the list generated?
The sort, ordering or even querying by a "post-view" count would not be the problem in Toolset, the issue is more that we would need to add a tracking system to somehow count views of Posts.
If you find a Plugin that adds this in form of PostMeta, then you can use this information to order or query a View output.
An example that should work:
https://de.wordpress.org/plugins/post-views-counter/
Or, even nicer, a custom logic code:
http://wpsnipp.com/index.php/cache/track-post-views-without-a-plugin-using-post-meta/
This last code uses post meta, which is perfect for the case here.
However be careful storing such data and always check if this complies with GDPR laws.
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 3 replies, has 3 voices.
Last updated by 6 years, 4 months ago.
Assisted by: Beda.