Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thanks 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. :-/

    This still isn’t working. Am I supposed to call the gapp_get_post_pageviews function somewhere in addition to using this?

    Thank 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; ?>

    Where 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!

    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!

Viewing 5 replies - 1 through 5 (of 5 total)