Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3765211
review box
Open

Comments

  •  1
    xarabithan started the conversation

    Hi PenciDesign-Team,

    the review box is great. Thank you for this feature.

    Two questions about this:

    1:
    How can I give the review points a weight for the summary (total review points). For example. I have 3 points (all 1/3 weight) and want the third to bring double weight (2/4 instead of 1/3 and the other two 1/4 each).

    2:
    Is there a way to post the review box automatically without a shortcode inside the post? Maybe by acf or a php script (if - then)?


  •  2,607
    PenciDesign replied

    Hi,

    1/ Generally, you can assign a separate percentage for each point, ranging from 1 to 10.

    2/ Add this code to the functions.php file of your child theme or use the Code Snippets plugin, available here: https://wordpress.org/plugins/code-snippets/.

    add_action( 'penci_action_after_the_content', function() {
    	echo do_shortcode('[penci_review index=1]');
    } );

    Regards,
    PenciDesign.

  •  1
    xarabithan replied

    1. No, I don't mean the scala of the points. I want to give one of the review points (f. e. price or fun or material) a higher share of average value. Every single value have one equal share in the average value. I want to give one of them a "double weight" for the average value. For example buying a car: one part colour (maybe 6), one part motor (maybe 5) one part price (mabe 10) results in 1/3 each point (average 7). Weighten the price twice would mean an average of 6+6+(2x10)=8.
    Is this possibele, maybe by a additional script in a template?

    2. Code works, thank you very much. I still have to find a way to show the box only if there is content in it.

  •  2,607
    PenciDesign replied

    Hi,

    Unfortunately, the current version of Soledad and Penci Review does not support this workflow. We will research and consider adding this feature in a future theme update.

    Regards,
    PenciDesign.