nate_hellaclips
Forum Replies Created
-
Thanks Jeff,
Ill submit this thread there.
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Php errorsHi there,
I have some more info for you.
We migrated our site to wordpress from custom CMS and wanted to keep our old post view figures ($hcviews). To combine the old view count with the new ones generated by your plugin I wrote this function in my functions.php
function get_post_views() { $tptnviews = get_tptn_post_count_only( get_the_ID(), 'total' ); $hcviews = get_post_meta( get_the_ID(), 'post_views', true); if( $hcviews > 0) { return $tptnviews + $hcviews; }elseif ($tptnviews > 0 && $hcviews == 0) { return $tptnviews; } else{ return 800; } }This didnt get me the results I wanted when called in my loop ( get post views() ) So I resorted to just using your plugins get_tptn_post_count_only() in my homepage post loop to display each posts view count. ( This wasn’t optimum however because our old posts weren’t displaying an accurate view count ) . Then recently, our view count got really wonky and stopped displaying accurate information all together, displaying 0 or a random inaccurate low number. I checked our logs and saw the original error message posted above.
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Php errorsgetting more errors, this one pops up a lot trying to display view counts in my homage loop. It worked fine until the other day, I upgraded to your new version to try and fix it, but it didn’t fix the problem
[09-Feb-2015 19:50:08 UTC] PHP Fatal error: Call to undefined function get_tptn_post_count_only() in /home/content/p3nexnas06_data03/33/2162633/html/wp-content/themes/hellaclips/home.php on line 125Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Php errors.
Why aren’t the thumbnails generating lightbox links and instead sending me to another page (” the page you’re calling “imagebrowaser”)
@photocrati no answer for me though?
hi thanks for the reply,
I took it off because I couldn’t figure out what was going on and ditched it to try another, I am now realizing that I would REALLY like to be able to use NextGen. I am re-installing now and creating a test page (https://www.hellaclips.com/49912/) with a gallery installed.
From what I have learned from reading around, my problem is caused by jquery being loaded more than ounce? I am loading jquery from google using wp_enqueue_script in my themes function.php. does this conflict with NextGen?
take a look at the linked page provided and let me know what you think,
Thanks for your help
-NateForum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] how echo total all time view countHi Ajay,
I should have done a bit more explaining, I just imported a bunch of posts from my old site (around 20,000 posts), Im trying to add the view count from your plugin to old the view count from my old site that I transferred over as a custom field. I wrote a function to add them together and display as one:
function get_post_views() { $wpviews = The code Im asking for would go here; $hcviews = get_post_meta( get_the_ID(), 'post_views', true); $hcviews = ( $hcviews != '' ? $hcviews : 0 ); if( $wpviews > 0 && $hcviews > 0 ) { return $wpviews + $hcviews; } elseif( $wpviews > 0 && $hcviews == 0 ) { return $wpviews; } elseif( $wpviews == 0 && $hcviews > 0 ) { return $hcviews; } else { return 0; } }As you can see I’m not looking to echo there view count from your plugin here, just trying to pull it to be added to my custom field number.
Thanks