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.
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.
CodePudding user response:
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.
CodePudding user response:
You can add the dropdown for rating using meta boxes and based on the metabox value you can display the number of stars.