Question: 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

  1. Classes should be used for all of the plugin components. They should be organized into a single namespace for your plugin.
  2. 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.
  3. Code should be well documented with DocBlocks.

Plugin Class:

  1. Create a class to manage all of the plugin components. Use a singleton
  2. 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

  1. Create a custom post type for books
    1. Hierarchal (like pages -- needed for reviews)
    2. Supports: Title, Synopsis (Content) , Book Cover (Featured Image)
    3. Uses Gutenberg editor ('show_in_rest' => true)
  2. Create a custom taxonomy for genre
    1. Hierarchal (like categories)
    2. Should be tied to books only.
  3. Create a custom meta box
    1. Custom meta fields include:
      1. Publisher
      2. Published date
      3. Page count
      4. Price
    2. These fields should be displayed with the book.
  4. On the page that displays the book, also display the reviews for that book. This can be in a list or widget.
  5. Display the average review rating

 

Reviews Post Type Class

  1. Create a custom post type for reviews
    1. Non-hierarchal (like posts)
    2. Supports: Title, Review (Content)
  2. Create a custom meta box
    1. Custom meta fields include:
      1. Name (of reviewer)
      2. Location (city, state)
      3. Rating (1-5 stars as a dropdown or radio buttons)
      4. Book (id of book being reviewed – should be a dropdownLinks to an external site. of existing books.)
    2. Fields 1-3 should be displayed with the review.

 

Reviews Shortcode Class 

  1. 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.
  2. Add this shortcode on the home page and bio page

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

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 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!