Count post views in loop
Few remarks: You should consider using a prefix on your meta key, for example lars_views, to minimize the risk of other plugins messing around with it. If you want to hide it from the edit screen, you can use an underscore: _lars_views. Consider wrapping the part of your code, that updates the counter, with if( … Read more