Changing comment_count to views

Yes, you have to calculate page views. Do not use plugin as it needs a small piece of code. Below code will increase pageviews and will store in post meta. Use this code in single.php or loop-common. if( is_single() ) { /* Increase post view count by 1 */ $post_view_count = get_post_meta($post_id, ‘view_count’, true); if( … Read more

how to localize the number of wordpress post views?

The problem is most probably, that you don’t actually call the filter. WordPress does this not automatically for you. If you want to create a custom filter you have to manually call apply_filters, so that the added filters get executed: function the_views($postID){ $count_key = ‘views’; $count = get_post_meta($postID, $count_key, true); if($count==”){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)