Tag Info

Hot answers tagged

2

The typical idea behind trending is content that is popular in short recent span of time. If you are only capturing total post views for content you likely won't have data to implement it. For example: Post A is 100 days old, had 100K views total, around 1K views a day. Post B is 10 days old, had 10K views, 8K of them in last day. A is long time ...


2

In my personal opinion, this can get a bit resource intensive, so you will need to implement some type of cache system, or even look at transient What you want to do is to extent your current post view function or even create one on the side for this. You would want to capture each view twice, once for normal page view as you are currently doing ...


1

What else can I do to the query to do as little work as possible to eliminate "extra" posts in PHP that get queried because my query is too broad. The trouble is, meta queries are slow. Metadata is a simple key => value type database. Keys are indexed, and values are longtext. That's it. No datatypes. No additional indexes. Nothing. And not to mention ...



Only top voted, non community-wiki answers of a minimum length are eligible