What’s wrong in the WordPress Meta Box Generator code?
What’s wrong in the WordPress Meta Box Generator code?
What’s wrong in the WordPress Meta Box Generator code?
How to be Variables and options must be escaped when echo’d?
Its the second time i find myself recommending this plugin today, ProjectManager is a plugin that will answer most of your requirements. here is a screencast of how to use it
Product reviews is a default comments in WordPress. And rating stored in meta fields. Use get_comment_meta(). If you have custom reviews – you should have custom comments query. For every comments – get post meta. Look into wp_commentsmeta table in your database.
WooCommerce questions are off-topic, but since reviews are merely comments, I think we can make the case that ordering comments is still on-topic. wp_list_comments() has a reverse_top_level parameter that will set the most recent comment first and then go backwards. Assuming it works like I think it should then you’d want to add this parameter … Read more
You can use comments and store individual ratings using add_comment_meta(). You would also probably want to store the rating average using add_post_meta(), since it’s rather expensive to calculate it on the fly. Each time a rating is added or removed, you will have to update this average. I don’t know if there are any plugins … Read more
This appears to be a few days to a week, as said in the comments. I can say I’ve experienced the same amount of time a few times now. However, this is no rule.
Are you using a checkbox or similar for the ‘acf_platform’ field using ACF for more than one selection? Advanced Custom Fields stores these as a serialised array, so a meta_query with ‘compare’ => ‘=’ may not work. The ACF documentation suggests using ‘compare’ => ‘LIKE’ $args = array( ‘meta_query’ => array( array( ‘key’ => ‘field_name’, … Read more
The most frequent approach would be to create a new “review” or “testimonial” Custom Post Type (“CPT”) with a plugin or in your theme‘s functions.php file (or a new child theme‘s functons.php file, if your current theme is not custom-built), and then alter your product page template to use a secondary loop to display your … Read more
First add 1-5 * (star) Radio button on comment form. add_action( ‘comment_form_logged_in_after’, ‘add_review_field_to_comment_form’ ); add_action( ‘comment_form_after_fields’, ‘add_review_field_to_comment_form’ ); function add_review_field_to_comment_form () { echo ‘<p class=”comment-form-rating”>’. ‘<label for=”rating”>Rating</label> <span class=”commentratingbox”>’; for( $i=1; $i <= 5; $i++ ) echo ‘<span class=”commentrating”><input type=”radio” name=”rating” id=”rating” value=”‘. $i .'”/>’. $i .'</span>’; echo'</span></p>’; } Now save the Rating value to … Read more