Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$30
store page hits in post meta
I would like to track monthly pageviews for individual pages by storing the number of hits in the post meta. Every time the page is loaded, it should update the count. It should only take up one field, so you will need to think up a way to store (and then return) it in a single string along with the current month (e.g. MMMYY(Views), MMYY(Views) or something like that)
I would also like the code to display a list of all the stored data for months and views, also the current months data
At some point I would like to get this working with AJAX to reduce the performance impact, but perhaps thats a task for another question
This question has been answered.
npeplow | 11/16/11 at 7:25am
Edit
(2) Possible Answers Submitted...
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
11/16/11
7:30amJulio Potier says:Hello
When you say "It should only take up one field", you want only use on meta field, right ?
I can do this now, please bear with me ;)
(i'm on skype if you want to chat about it, just PM me)- 11/16/11 8:51am
Julio Potier says:I've got your plugin, home made from scratch, here comes my test :
http://demo.boiteaweb.fr/the-title-for-julio-posst1-2-1972.html
http://dl.dropbox.com/u/45956904/ScreenShots/baw_111116-144659.png
My test post content :
This post have been viewed [post_views] times.
Archives :[post_views all="yes"]
And also can be used like this :
[post_views id="123" month="01" year="2006"]
This shortcode will display the archive views for post ID#123, January 2006.
HTML code can be modified by yourself in the plugin of course...
Is it ok for you ? If yes, i can send the plugin, send me a mail by PM or come on skype julio.boiteaweb
See you soon - 11/16/11 9:27am
npeplow says:Hi Julio
That looks perfect! I really appreciate that you have taken the time to add shortcodes, but I plan to include this part in the page template (there are a lot of pages!) - I'm guessing I can just find where you coded the shortcode reference and stick that in the pages? - 11/16/11 9:29am
Julio Potier says:You can do this :
<?php echo do_shortcode( '[post_views]' ); ?>
- 11/16/11 8:51am
-

Last edited:
11/16/11
8:26amClifford P says:Want an already-built plugin? They often store in a custom field that starts with "_...." (starts with an underscore), which tells WordPress' custom fields GUI not to display (i.e. hidden custom field). In other words, you might already have one that exists in your database if you are already using a stats plugin.
What do you want to use the data for? To display on-page to your readers? Or next to the "All Posts" or "All Pages" lists in the Admin? Or just to have a field to do stuff to later? And/Or something else?
Having some context will help provide a suggestion.- 11/16/11 8:32am
Clifford P says:For example: NewStatPress (more info at http://newstatpress.altervista.org/ - and see sidebar for one way to display the info)
- 11/16/11 8:38am
Clifford P says:For example: Statpress Visitors - screenshots: http://www.flickr.com/photos/59604063@N05/sets/72157626522412772/ - plugin announcement (with comments section): http://additifstabac.free.fr/index.php/statpress-visitors-new-statistics-wordpress-plugin/
- 11/16/11 9:21am
Clifford P says:And the list goes on...
http://wordpress.org/extend/plugins/statsurfer/
http://wordpress.org/extend/plugins/wp-slimstat/
http://wordpress.org/extend/plugins/wassup/
http://wordpress.org/extend/plugins/statrix/
And there are more...
Just depends what you want. - 11/16/11 9:22am
Clifford P says:Do you use caching? If yes, be aware of how your chosen solution interacts with that. Often, if pages are cached, it won't register a hit. Depends. If not using caching, any solution should work.
- 11/16/11 9:28am
npeplow says:Thanks Cliff, but im after something really tactical and basic
- 11/16/11 8:32am
This question has expired.
Gabriel Reguly had additional discourse to offer.
Gabriel Reguly, Luis Abarca, Francisco Javier Carazo Gil, npeplow voted on this question.
Current status of this question: Completed
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
