Answered step by step
Verified Expert Solution
Link Copied!

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

  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

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation and Management

Authors: Carlos Coronel, Steven Morris

11th edition

9781305323230, 1285196147, 1305323238, 978-1285196145

More Books

Students also viewed these Programming questions

Question

What are referential constraint actions?

Answered: 1 week ago