Well, the code you are using to count views does store the count data as a custom_field value. If I want the functionality you mentioned in question, I’d rather use a custom plugin to create a separate table in database to store view count and respective dates. So doing some queries you can display popular posts by date/month etc.
Related Posts:
- How to display Yoast SEO meta description in archive template for each post instead of the_excerpt()? [closed]
- How to Change Loop to Order Posts by Views (using wp-postviews plugin)
- Get ID of a page containing secondary loop in content
- Next and Previous loop
- How to hook into container
- Output meta into arrays
- value of metadata is null wrong use of if statement
- Count post views in loop
- Sending mail not working correctly
- using update_user_meta to rank users
- How to sort a loop after most viewed
- get_post_meta printing empty fields, but it shouldn’t be
- Check value of post meta within IF statement
- Best way to check if a post with specific meta exists
- WP update_post_meta link loop
- Humanmade | Custom meta box class: How to display a repeatable meta box group?
- Display articles related to a custom field on a page
- if ( is_home() && ! is_front_page() )
- Why am I being limited to ten posts on a custom loop?
- Child Pages Loop
- Loop.php vs looping inside template file
- Insert/sticky specific post into Loop at specific location
- Style every four posts differently [duplicate]
- Return vs Echo Shortcode
- have_posts() return false but count says “3”
- next_posts_link not working in custom loop
- Ajax loop in sidebar to load post titles/categories
- Displaying custom posts only if custom meta box’s date is not expired
- How to sort posts in archive loop
- Fix inefficient loop breaks post.php on form submit
- Double count view in archive.php
- Make a custom loop inside single.php with pagination
- Why do I get `Call to a member function have_posts() on a non-object `? [closed]
- Help with Changing loop.php?
- Pulling current post/page data into header.php
- Loop and Page template : my WP_query don’t take args
- How to split a loop into two columns
- Category Ajax call
- Transient loop issue
- popular post weekly and monthly
- How can i use the same template file with a widget and category loop?
- WordPress Loop inside Loop?
- Get single post from tags array
- Apply an Incremental Counter in an Array Function
- Get all posts including sticky ones with get_posts(),setup_postdata(), and foreach loop?
- angularjs not displaying all posts
- Problem getting current post tags to show in a widget
- Include multiple page ids in loop
- “Call to a member function have_posts() on array” error on have_posts();
- 404 Template customization | Want 10 recent Post on the 404.php error page apart from the error Notice
- For each loop on every word in post
- Display name of taxonomy once
- Use have_comments() for current post instead of last post in loop
- Displaying the first, second, and third posts from a category in separate slides
- WordPress Alphabetical Sort Loop Issue
- Call wp-blog-header.php header without performing a wp_query
- Display post formats differently on index.php (loop in function)
- How to output thumbnail twice in a loop
- Frontpage pagination by week
- Remember the Meta Value With Radio Buttons
- Saving return value from the_author_posts_link()
- Display more than 10 posts on author.php file
- Accessing the Posts page Content
- how to run loop in function.php that sends email based on specific conditions?
- How to use this $tax_selection variable in this custom loop?
- Display all categories as plain text
- Forcing page to top of the list when using get_pages
- How to display fields from the loop in two separate divs
- WordPress posts loop not displaying all posts on blog
- get_page_by_title not working inside fucntions.php
- Duplicate posts on archive page
- Bootstrap tabs are not being clicked in WordPress loop
- Get gallery in loop through ajax
- Pagination on a underscore custom theme
- Build a Page which shows the Oldest Post with specific Custom Field Value
- WordPress multiple loops with default pagination
- Loop random posts and display odd and even based on two alternating meta values?
- Get top Page IDs from menu and cycle through their child pages on a scroller
- Style first 3 posts differently and use a 2nd loop to get rest of posts / offset and pagination broken
- Posts Per Page is Not Returning Correct Number
- Add specific class to featured posts
- Get meta value when the page is a blog archive
- Echo Most Recent Sticky Post in Loop?
- WordPress Tags in class
- Set loop format & have a loop inside other one
- The Loop isn’t working
- Custom loop page with post navigation
- Pages with a loop (index, archive) are loading the first image as post_thumbnail
- the loop – how to control whether wp or plug-in runs it
- stuck with template hierarchy
- How to create an identical second loop for attachments?
- Randomly Display One Image From a 10-Image For Loop
- How to show only specific tag in wordpress loop
- WooCommerce – Checkout suddenly stops working [closed]
- pull 500 post of many from database [duplicate]
- WordPress loop put title into variable
- How to add a continuous number to HTML tag attribute value inside The Loop [closed]
- WordPress Not Sorting By Custom Field
- Landing page with login
- How can I create an entirely new, separate display of posts?