Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a Theme showcasing your favorite author Requirements: A. create a single plugin to showcase that authors publications that has the following Classes should be
Create a Theme showcasing your favorite author
Requirements:
A. create a single plugin to showcase that author’s publications that has the following
- Classes should be used for all of the plugin components. They should be organized into a single namespace for your plugin.
- Your plugin should be easily translatable. Use the __(…) function anytime you output a label for a field. Make sure your text domain is the same for your entire plugin.
- Code should be well documented with DocBlocks.
Plugin Class:
- Create a class to manage all of the plugin components. Use a singleton
- On initialization (__construct), it should add activation/deactivation hooks to flush the permalink cache Links to an external site. and initialize the rest of the components.
Books Post Type Class
- Create a custom post type for books
- Hierarchal (like pages -- needed for reviews)
- Supports: Title, Synopsis (Content) , Book Cover (Featured Image)
- Uses Gutenberg editor ('show_in_rest' => true)
- Create a custom taxonomy for genre
- Hierarchal (like categories)
- Should be tied to books only.
- Create a custom meta box
- Custom meta fields include:
- Publisher
- Published date
- Page count
- Price
- These fields should be displayed with the book.
- Custom meta fields include:
- On the page that displays the book, also display the reviews for that book. This can be in a list or widget.
- Display the average review rating
Reviews Post Type Class
- Create a custom post type for reviews
- Non-hierarchal (like posts)
- Supports: Title, Review (Content)
- Create a custom meta box
- Custom meta fields include:
- Name (of reviewer)
- Location (city, state)
- Rating (1-5 stars as a dropdown or radio buttons)
- Book (id of book being reviewed – should be a dropdownLinks to an external site. of existing books.)
- Fields 1-3 should be displayed with the review.
- Custom meta fields include:
Reviews Shortcode Class
- Create a custom shortcode that will display a random That review should include the review, reviewer’s name, location and a link to the book.
- Add this shortcode on the home page and bio page
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Creating a WordPress theme showcasing your favorite author involves a lot of coding and may take a significant amount of time Ill provide you with an ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started