sarahcpr
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Analytics Post Pageviews] No Cache Saved in DBThanks again. Yes all the posts has the key/value.
My header appears, but nothing after that (where the list of articles, sidebar and footer should be). I really thought it was some problem with syntax but I’ve tried everything.
“$show_post_stats” is the variable that the theme creates to either show or not show stats in the post listing, so I do need it. The weird thing is, even when I have this turned off, if I use this code inside there, it still breaks. So I’m really not sure what’s going on.
I’ve tried putting the code elsewhere in the file and it still breaks, I’ve also tried changing the name of the variable. :-/
Forum: Plugins
In reply to: [Google Analytics Post Pageviews] No Cache Saved in DBThis still isn’t working. Am I supposed to call the gapp_get_post_pageviews function somewhere in addition to using this?
Forum: Plugins
In reply to: [Google Analytics Post Pageviews] No Cache Saved in DBThank you so much. This is the code I’m trying to use but it’s breaking everything, I think my syntax is off, can you take a look:
<?php if($show_post_stats): ?>
<?php if ( function_exists( ‘gapp_get_post_pageviews’ ) ) {
$views = intval( gapp_get_post_pageviews( null, false );
if ( 0 === $views ) {
$views = intval( get_post_custom_values( ‘analytics-pageviews’, get_the_ID() )[0] );
} ?>
<span style=”font-size: 14px; line-height: 27px; font-weight: 300; color: #b7b7b7;”>· <?php echo $views;?> Views</span>
// use $views here to output the number of pageviews in the template
} ?>
<?php endif; ?>Forum: Plugins
In reply to: [Google Analytics Post Pageviews] No Cache Saved in DBWhere do I put this code to get it to work? I’ve posted previously but didn’t get a response. I set my cache to 6 hours but it still goes back to “0 Views” everytime I hit the limit. Please help!
Forum: Plugins
In reply to: [Gravity Forms Personality Quiz Add-On] How do you use it??I had the same problem. Then I went to the Form Settings for a form I created. There is a Personality Quiz option there. I’m still trying to figure out the scoring though. Let me know if you figure that out!