coldpumpkin
Forum Replies Created
-
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] No count on posts pagePhotography page.
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Top 10 2.x – Tracking fixchrishdunn I think it’s
<?php echo tptn_add_viewed_count( ' ' ); ?>Forum: Plugins
In reply to: [WP Popular Posts] Show views for current post, on single.phpdreamsoft apparently that’s how it’s working currently.
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Custom output when listing popular postsIt works now 🙂 Thank you very much for your time!
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Custom output when listing popular postsHi again! First of all thanks for your time.
The limit is now working, but it’s still displaying by newest to older, instead of higher views to lower views :\
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Custom output when listing popular postsI tried this
<?php $top_posts = tptn_pop_posts( 'posts_only=1&limit=3' ); $top_posts_array = wp_list_pluck( $top_posts, 'postnumber' ); $args = array( 'order' => 'DESC', 'orderby' => 'meta_value', 'post__in' => $top_posts_array, ); $loop = new WP_Query( $args ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <img src="<?php $url = get_post_thumbnail_id(); $url = wp_get_attachment_image_src($url,'large'); $url = $url[0]; echo $url; ?>"> <?php endwhile; ?> <?php wp_reset_postdata(); ?>But it’s not going by the correct order, I mean, it’s not ordering from the most viewed to the least viewed and, also, the limit tag is not working, it’s showing all posts viewed at least once.
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Custom output when listing popular postsTried to achieve something but no output. All I really want is to be able to define the output, like as if it was inside a loop. I saw what the user tried to do but it’s not working for me.
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Custom output when listing popular postsSorry but I don’t think I understand what I’m supposed to do 😡 I’m not really good at php
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Custom output when listing popular postsBecause e.g. it’s also outputting an
<a>tag wrapping the<img>tag. All I want is the<img>tag and also it contains custom style for dimensions which are conflicting with my CSS.Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Top 10 2.x – Tracking fixAlright, thanks very much!
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Top 10 2.x – Tracking fixYes, it seems to be working just fine! Thanks for that. Also, on a unrelated topic, any way to prevent inflated post views? Like someone who keeps refreshing the page causing the view count to get higher. Perhaps a timer or even track by IP? Thanks again.
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Top 10 2.x – Tracking fixThe reason why I don’t use the_content is because I’m building a photo blog. So basically all I need is the thumbnail. Adding that code made it work. What do you mean “production site”?
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Top 10 2.x – Tracking fixNah, I’m not using that tag. Shouldn’t the tag I inserted above work? Maybe there’s more being output to the_content needed for the plugin to work.
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Top 10 2.x – Tracking fixI’ve done that, still nothing! Tried switching themes, and it works in WP’s defaults! :O What could be wrong with my theme? What I did basically was adding
<?php if ( function_exists ( 'echo_tptn_post_count' ) ) echo_tptn_post_count(); ?>in single.phpForum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] Top 10 2.x – Tracking fixActually it’s weird, I installed a fresh wp with the plugin alone and it’s working. In my localhost the activate_counter is not present! Also, disabled all other plugins and still, nothing.