Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

[SOLVED] WP-Postviews


  #1  
Old Dec 27, 2013, 10:13 AM
emanuel1969's Avatar
emanuel1969
 
133 posts · Apr 2010
California
Send a message via Skype™ to emanuel1969
Hi, I'm trying to use WP_Postviews and the instructions say to put the following code into the theme's index.php file where you want it to appear:

<?php if(function_exists('the_views')) { the_views(); } ?>

This works. I put it after the by-line. However, it looks terrible (and it appears universally on all pages). I would like instead to add it to Post/Page info items just on single pages. However, when I put it in there, it doesn't work. The plugin also says I can use this variable:

%VIEW_COUNT%

Yet when I try that it also doesn't work (it shows the actual text).

Any help would be appreciated.

Thanks!
Emanuel
__________________
Emanuel
http://www.sferios.com
  #2  
Old Dec 27, 2013, 12:02 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
if you are going to use it in ato->Edit POST/PAGE INFO ITEMS, you might want to read the documentation on the page. ie...
Quote:
%wp-postviews% - Displays how many times the post was viewed. Requires the plugin WP-PostViews. After you installed this plugin, customize the output at the WP-PostViews Options Page.
Suggested settings:
Change "Views Template" to customize the output of this item
Make other changes as you see fit
Click "Save Changes"
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 27, 2013, 01:54 PM
emanuel1969's Avatar
emanuel1969
 
133 posts · Apr 2010
California
Send a message via Skype™ to emanuel1969
Whoah! You're one step ahead of me. Who'd have thunk it would be in the ata documentation? Thanks!
__________________
Emanuel
http://www.sferios.com

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem with WP-PostViews ChenZi Plugins & Atahualpa 2 Oct 5, 2012 09:58 AM
Atahualpa et wp-postviews lecalve Plugins & Atahualpa 0 Jan 26, 2012 01:15 AM
WP-PostViews workaround? perdox808 Post-Kicker, -Byline & -Footer 0 Apr 10, 2009 10:57 AM


All times are GMT -6. The time now is 12:00 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.