Pin counts same for all posts on a page
-
I am using this plugin on a client’s site. Had it set up to show on post excerpts and using the shortcode to show the pin button (horizontal count) on a sidebar featured post widget.
Everything was great and all pin counts were accurate until we noticed (early November) that all the pin counts were merging. The home page of this site shows post excerpts. Each excerpt has a pin button. And now, all those buttons show the same count (even though they obviously haven’t been pinned the exact same number of times).
Same thing happens on an individual post page. Lets say the post has been pinned 100 times. The featured posts in the sidebar widget area also have their own pin count buttons. Until recently, those buttons showed unique counts representing their respective post pin counts. Now the number they show is the number that the actual post has been pinned (100).
The excerpt pin button counts are being displayed through the regular plugin settings.
The sidebar ones are added through a custom function. Here’s the function used to add the pin buttons to the sidebar featured post widget:
function gfwa_pin() { ?> <div class="pinterest-button"> <?php echo do_shortcode('[pinit count="horizontal"]'); ?> </div> <?php }
Like I said, all was well until a couple months ago. Let me know if you’d like the actual url of this site and I’ll message it to you.
- The topic ‘Pin counts same for all posts on a page’ is closed to new replies.