Articles of views

Add link on the top menu of the post table?

Is there any way to add links on the top, as pictured below?

Sorting posts according to view counts not working

I use the code snippet below to get views count of each post on my sidebar.php . everything works but the sorting does not. also it does not get 4 posts, it only shows 1 post although I’ve written ‘numberposts’ => 4 . I guess the problem comes from post query. because when I’m on […]

Double count view in archive.php

I’m having a hard time using this snippet I’m getting double views each time the post is queried. This is in my functions.php file: function getPostViews($postID){ $count_key = ‘post_views_count’; $count = get_post_meta($postID, $count_key, true); if($count==”){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, ‘0’); return “0”; } return $count; } function setPostViews($postID) { $count_key = ‘post_views_count’; $count = get_post_meta($postID, […]

How to add “time” data this?

I am using this simple snippets to get post view count for a long time I was wondering if we can add a “time” data ? Because I would like to show the view of yesterday/ 2 days ago / 2 days ago etc… ? we can display in sidebar like MOST POPULAR POSTS OF […]

Community and User Generated Content Website: Have been thinking about Drupal but leaning on WordPress heavily

I’m a non-programmer and run a food website (plain – jane Dreamweaver) along with a simple WordPress powered blog. I envisioned creating a food website that is both user powered (one can submit recipes, tips articles, photos etc) and also act as a mini social network (people can blog) – create profiles, make friends etc. […]

Counting pageviews on high-traffic cached sites

Our site is quite high traffic and we use both nginx and w3 total cache to handle the load. We’ve previously been using wp-postviews to count the page views, but it seems to be locking the postmeta table now, and often doesnt count views at all. It’s unreliable at best. Can anyone suggest a way […]

Tinymce shortcodes within shortcode contents

I am using wp.mce.views.register to create a simple view for my shortcode in the tinymce editor, this works fine but i am looking for a way to have “nested” shortcodes e.g. [column_3] [info_box] <p>Some info here!</p> [/info_box] [/column_3] and to have them rendered nicely. This is simple enough frontend with do_shordcode($shortcode_content); but I havent been […]

How to Change Loop to Order Posts by Views (using wp-postviews plugin)

I hope somebody would be kind enough to help. I currently have a page that orders all of the posts by comment count, but I want to change the loop to order the posts by view count. I have installed the ‘wp-postviews.1.50′ plugin and have got it to display the number of views on each […]

Change post category based on latest posts views

I have a custom field called post_views_count which stores the views of each post on my blog. I would like to use these views to decide which category the posts belong. Here is what I would like to happen: Put the latest 50 posts into groups of 10. Find which post in each group has […]

Creating a custom MCE view for your shortcodes

How to create a custom MCE view of my own WordPress shortcode?