Skip to content

code-mat/wp-fooz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fooz agency logo

WordPress Fooz Recruitment Task

Repository root corresponds to the wp-content directory.

Implementation is split into:

  • a custom plugin for content functionality
  • a child theme for the presentation layer
  • a custom Gutenberg block plugin for FAQ

Structure

plugins/library-core content plugin responsible for:

  • Books custom post type
  • Genre taxonomy
  • admin-ajax JSON handler for "other books"
  • genre archive query adjustments

themes/twentytwentyfive-child Child theme responsible for the presentation layer:

  • custom templates
  • frontend assets (CSS / JS)

plugins/faq-accordion-block Custom Gutenberg block plugin responsible for:

  • FAQ Accordion parent block
  • FAQ Item inner block (question/answer)
  • frontend accordion behavior

How To Run

  1. Activate library-core plugin.
  2. Activate faq-accordion-block plugin.
  3. Build FAQ block assets:
    • cd plugins/faq-accordion-block
    • npm install
    • npm run build

How To Review

Books Library (tasks 1-4)

  1. In WP Admin, create a few Books posts and assign Genre terms.
  2. Open a single book page and verify:
    • title, featured image, genre, publication date
    • "other books" list loads asynchronously
  3. In browser devtools, verify the request goes to admin-ajax.php and returns JSON.
  4. Open a Genre archive page and verify:
    • only books from the selected genre are listed
    • 5 items per page
    • pagination/next-previous works

FAQ Accordion Block (task 5)

  1. In Gutenberg editor, add FAQ Accordion.
  2. Edit heading and add multiple FAQ Item blocks.
  3. Verify each question toggles its answer on frontend.
  4. Verify numeric order appears before each question.
  5. Verify layout is usable on desktop and mobile widths.

About

WordPress recruitment task: books library (CPT + taxonomy + FSE templates + AJAX JSON) and custom gutenberg block "faq accordion".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors