The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
64 views

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';...
0
votes
1answer
47 views

How to display total views of all posts of one category?

Is there any way to display total views of all posts of one category? How to show that number on archive page? I have used this code to count views of each post: function getPostViews($postID){ $...
0
votes
1answer
132 views

Show number of views in the last 48 hours

I have now the most popular views on the posts I have. But I want to show the most viewed in the last 48 hours. How can I achieve that? Someone helped me and I placed this in single.php file. $...
-1
votes
1answer
236 views

Display (custom) post number of views

I'd like to display at the top of every post (actually those are custom posts) the number of times it was viewed by users. Is there a way to do this ?
-1
votes
1answer
2k views

Remove 'portfolio' from URL

I was trying to remove portfolio-view from url and followed instructions to remove its name from highlighted section. This works but has left me with 'portfolio' now even though field is blank. What ...
1
vote
0answers
31 views

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] ...
1
vote
0answers
633 views

define orderby URL with meta_key=post_views_count

I want to make an url with meta_key=post_views_count. E.g: http://www.mysampleweb.com/?meta_key=post_views_count&orderby=meta_value&order=DESC So the posts should be ordered by Views. ...
0
votes
0answers
530 views

How to display most popular post by views count in WordPress?

I tried to display the most view post in last 30 days in my WP page, how to do this? What I did is: <div>Most Read Blog Posts Over Past 30 Days</div> <?...
0
votes
0answers
37 views

Why are wp.mce.views re-created each time?

If you look in the mce-views.js of Wordpress you'll see something interesting - it references views by the text shortcode and looks them up in an array: /** * Get a view instance. * ...
0
votes
0answers
20 views

Pageview all of sudden not working

I am not sure how to explain it. MY page view count is not working all of sudden. Here is my code: $output .= '<div class="mainpageview fa fa-eye">'; $views = get_post_meta( $post->ID,...
0
votes
0answers
50 views

Count how many posts a user has viewed

Seems this is quite a new question, as I found it nowhere. I was wondering if it is possible to count how many posts a registered user has viewed (entered) on the frontend. So basically when a user ...