Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   [SOLVED] WP-Postviews (http://forum.bytesforall.com/showthread.php?t=21318)

emanuel1969 Dec 27, 2013 09:13 AM

[SOLVED] WP-Postviews
 
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

juggledad Dec 27, 2013 11:02 AM

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"

emanuel1969 Dec 27, 2013 12:54 PM

Whoah! You're one step ahead of me. Who'd have thunk it would be in the ata documentation? Thanks!


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

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