Overview
This guide walks you through setting up the WordPress Developer Showcase for local development. You’ll configure WordPress 6.9+, install the theme and plugin, and set up the build tools for both PHP and JavaScript development.The repository root represents the
wp-content directory of a WordPress installation. You’ll need a working WordPress environment to use this showcase.Prerequisites
Before you begin, ensure you have:- WordPress 6.9 or higher installed locally
- PHP 8.1+ with Composer installed
- Node.js 18+ and npm installed
- A local development environment (Local, XAMPP, Docker, etc.)
- Git for version control
Step-by-Step Setup
Clone the Repository
Clone the repository to your local WordPress installation’s Verify the structure:You should see:
wp-content directory:The repository is designed to replace your entire
wp-content directory. Make sure to back up any existing themes or plugins first.Install Bifrost Noise Theme Dependencies
Navigate to the theme directory and install both PHP and Node.js dependencies:Install PHP dependencies with Composer:This installs:This installs:
- WordPress Coding Standards (WPCS)
- PHPCompatibility for WordPress
- Symfony VarDumper for debugging
- PHP_CodeSniffer with automatic configuration
@wordpress/scriptsfor build tooling@wordpress/blocksand@wordpress/i18nfor Block Editor integration- Webpack plugins for asset optimization
For production builds, use
composer install --no-dev --optimize-autoloader to exclude development dependencies and optimize the autoloader.Build Theme Assets
Compile the theme’s JavaScript and CSS assets:For development (with watch mode):This runs This creates optimized, minified assets in the
wp-scripts start with custom configuration:- Source directory:
resources/ - Output directory:
public/ - Enables experimental ES modules support
- Watches for file changes and rebuilds automatically
public/ directory.Install Bifrost Music Plugin Dependencies
Navigate to the plugin directory:Install PHP dependencies:Install Node.js dependencies:Build plugin assets:For development:For production:This compiles the Block Editor integration scripts to the
build/ directory.Activate Theme and Plugin
Log in to your WordPress admin dashboard:
- Navigate to Appearance → Themes
- Activate the Bifrost Noise theme
- Navigate to Plugins → Installed Plugins
- Activate the Bifrost: Music plugin
The plugin registers custom post types (Artist, Album) and a custom taxonomy (Genre). After activation, you’ll see these new content types in the admin menu.
Verify Installation
Check that everything is working correctly:Theme Verification:This runs PHP_CodeSniffer to check code standards.
- Visit your site’s homepage
- Check that the theme styles are loading
- Open the browser console and verify no JavaScript errors
- In the admin, look for Artists and Albums menu items
- Try creating a new Artist or Album
- Verify the Block Editor loads with custom features
Development Workflow
Working with the Theme
Working with the Plugin
Directory Structure
Theme File Organization
Plugin File Organization
Common Issues
Blank Screen or Fatal Errors
Cause: PHP version is below 8.1 Solution:Assets Not Loading
Cause: Build step was skipped or failed Solution:Composer Errors
Cause: Composer not installed or outdated Solution:Class Not Found Errors
Cause: Composer autoloader not generated Solution:Next Steps
Now that your development environment is set up:Explore the Theme
Dive into
themes/bifrost-noise/src/ to see modern theme architecture patternsExplore the Plugin
Check out
plugins/bifrost-music/inc/ to learn about custom post types and service containersReview theme.json
Study
themes/bifrost-noise/theme.json to understand theme.json v3 configurationCreate Content
Start creating Artists, Albums, and blog posts to see the showcase in action
For contribution guidelines and Git workflow, see the CONTRIBUTING.md file in the repository.
