Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

[SOLVED] WP-Postviews


  #1  
Old Dec 27, 2013, 09: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, 11:02 AM
juggledad's Avatar
juggledad
 
23,648 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, 12: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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


All times are GMT -6. The time now is 04:19 PM.


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