celik75
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Plugins
In reply to: [YITH WooCommerce Multi Vendor] Show vendor products in a loop$vendor = yith_get_vendor( ‘current’, ‘user’ );
$args = array( 'post_type' => 'product', 'posts_per_page' => -1, 'post_status' => array('publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit'), 'tax_query' => array('relation' => 'AND', array( 'taxonomy' => 'yith_shop_vendor', 'field' => 'term_id', 'terms' => $vendor->term_id, 'operator' => 'IN' ) ) ); $loop = new WP_Query( $args ); if ( $loop->have_posts() ) { while ( $loop->have_posts() ) : $loop->the_post(); echo get_the_title(); endwhile; } wp_reset_postdata();
Forum: Plugins
In reply to: [WP Post Rating] Howto sort posts by ratingDo you place this all in functions.php?
Forum: Plugins
In reply to: [WP Post Rating] All stars black on average pageI fixed the issue!
My loop is loading from ajax so:wrapping
$(document).ajaxComplete(function() {}on jQuery( “.wpcr_averageStars” ).each(function() {…}
new js code into my theme:
$(document).ajaxComplete(function() { $( ".wpcr_averageStars" ).each(function() { //Get the value var val1 = $(".wpcr_averageStars").attr("id"); //alert(val1); // Make sure that the value is in 0 - 5 range, multiply to get width var size1 = Math.max(0, (Math.min(5, val1))) * 16; // Create stars holder var $span1 = jQuery('<span />').width(size1); // Replace the numerical value with stars $(".wpcr_averageStars").html($span1); }); });
- This reply was modified 5 years, 4 months ago by celik75.
Forum: Plugins
In reply to: [WP Post Rating] All stars black on average pagemissing some attr:
width: 40px; //depends on average rating
background-position: 0 0;@mark zahra
Sended the mail
@mark Zahra
I submitted a support ticket (Premium) for a bug on one of the add-ons. like 3 times!!!!
It’s been almost 1 month and still got no answer. Really unacceptable!!Im gonna also put a 1 star review if i don’t answer in few days.
Viewing 6 replies - 1 through 6 (of 6 total)