skip to Main Content

I created a custom post type for Testimonials, added author name as custom metabox field. Next I want to add a star rating for each of my Testimonial posts.

Screenshot of placeholder Testimonial with star rating

So I need this feature like if the post has 5 stars I can set 5 stars on the Testimonial Edit screen as a metabox or custom field.

2

Answers


  1. You can use a plugin like https://www.advancedcustomfields.com/ for this, or create a custom meta box with a input field for the number of stars, with a plugin or in your theme

    Personally I would always use the advancedcustomfields plugin for this, because this allows you to create multiple custom fields with validation without a lot of coding.

    Login or Signup to reply.
  2. You can add the dropdown for rating using meta boxes and based on the metabox value you can display the number of stars.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search