[Plugin: WP-PostViews] get_the_views()?
-
I wanted to use a shortcode to put the_views() right where I want it. Calling the_views() does an echo instead of a return. So I looked to see if there was a get_the_views() function. There isn’t.
But looking at the code, you can get the “return” version by setting the first argument to false. i.e.
the_views(false);
works.Suggestion: put this on the Installation or FAQ page to make it easier for the next guy…
-Denny
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[Plugin: WP-PostViews] get_the_views()?’ is closed to new replies.