I am using the post views counter plugin together with WooCommerce and I am trying to achieve the following:
Get
By using the tax_query
argument together with the pvc_get_most_viewed_posts
function of this plugin, I can limit the result of this function to a specific product type.
Is it possible to pass any query arguments to additionally specify a time period for these view counts? Moreover, is it possible to only output the post IDs instead of post objects?
Thank you in advance for any responses.
]]>The only complaint, small, is its CSS practices and a few inconsistencies. It uses several CSS properties with “!important” attributes which isn’t exactly an efficient practice — and ignored by frameworks like AMP that emphasise lean code (to clarify, the plugin author offers a good explanation for why he does that in their response below). Thumbnail options in the plugin settings also have no effects on thumbnails in widgets. I dequeued its stylesheet and added styles to a custom stylesheet, and they still apply with !important.
Otherwise, it’s the best plugin for what it does — lean and efficient.
]]>Please let me know how we can resolve this issue.
Best Regards,
Aniket
PHP version: 7.0.30-0ubuntu0.16.04.1
PHP extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, json, ldap, exif, mcrypt, memcached, mysqli, newrelic, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, soap, sockets, ssh2, sysvmsg, sysvsem, sysvshm, tokenizer, uopz, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, ionCube Loader, Zend OPcache
Database version: 5.7.22-22-log
InnoDB availability: DEFAULT
WordPress version: 4.9.7
Multisite: No
Active plugins: Akismet Anti-Spam 4.0.8, Disable Comments 1.7.1, Easy Logo Slider 1.2.1, GiphyPress 1.6.2, Logo Slider 1.4.8, Magic Liquidizer Responsive Table 2.0.0, Master Slider 3.5.1, MaxButtons 7.3.1, P3 (Plugin Performance Profiler) 1.5.3.9, Redirect 0.8, Slider Revolution 5.4.8, TablePress 1.9, Velvet Blues Update URLs 3.2.8, WordPress Importer 0.6.4, WordPress Popular Posts 4.1.1, WP Logo Showcase Responsive Slider 2.1
Theme: MH Magazine (2.0.2) by MH Themes
]]>https://www.ads-software.com/plugins/recently-viewed-and-most-viewed-products/
]]>Is there a way to show in the frontend widget the three most viewed pages of the site?
Thanks in advance. Very nice plugin!
]]>I’m using the “Popularity Contest” plugin to show the most viewed categories. When i use it as a widget in sidebar, it works fine. But what i need is to use it in the content of the page.
The plugin is not supported anymore, but it works fine as a widget, and i wonder what function should i call to get the proper output.
Any ideas please?
]]>‘orderby’ => ‘post_views’,
to order query, but it’s dosn’t help me.
My code.
$args = array(
‘post_type’ => ‘post’,
‘showposts’ => 5,
‘order’ => ‘DESC’,
‘orderby’ => ‘post_views’,
);
$the_query = new WP_Query( $args );
if( $the_query->have_posts() ) : while( $the_query->have_posts() ) : $the_query->the_post();
$content = get_the_content();
$paragraph_first_strip = strip_shortcodes($content);
$paragraph_first = substr($paragraph_first_strip, 0, 100);
?>
<div class=”articlesImages”></div>
<div class=”articlesInfo “>
<h6 class=”topInfo fontCustom”>
<div class=”heightTopInfo”>
<div class=”floatLeft”><?php the_title(); ?></div>
<div class=”floatRight”>
<span class=”tagHot”></span>
<span class=”tagExclusive”></span>
</div>
</div>
<div>
<span class=”sportType tagBasketball”></span>
<span class=”newsDate”><?php echo pvc_get_post_views( $post->ID ) ?></span>
</div>
</h6>
<div class=”newsContentTextInfo “>
<?php echo $paragraph_first; ?>
</div>
</div>
<?php
endwhile;
wp_reset_postdata();
?>
<?php else : ?>
<p><?php _e( ‘Sorry, no posts matched your criteria.’ ); ?></p>
<?php endif; ?>
https://www.ads-software.com/plugins/post-views-counter/
]]>I am trying to display a daily and weekly list in my left sidebar by using two top 10 widgets. The daily widget’s custom date range is set to 24 hours and the weekly widget’s date range is set to seven days. Both widgets are displaying the same posts with the same view count, so I believe the custom date range field is not working/ getting applied. Any tricks to get the custom range apply to the widgets?
Any help you can provide for this issue would be much appreciated, thanks.
Webpage with issue present: https://www.hitdex.com/adele-ft-rick-ross-hello-adele-hello-remix/
https://www.ads-software.com/plugins/top-10/
]]>https://www.bagogames.com/worthy-crown-kings-quest-chapter-1-knight-remember-review/
https://www.ads-software.com/plugins/most-and-least-read-posts-widget/
]]>