Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/ajithrn/fs-product-catalog/archive/refs/heads/main.zipA custom WordPress product catalog plugin without e-commerce functionality. Creates a custom post type for products with categories, brands, tags, and types.
Features
- Custom Post Type: Products with full WordPress editor support
- Taxonomies: Categories (hierarchical), Brands, Types (hierarchical), and Tags
- ACF Integration: Product information fields, specifications, and gallery
- Frontend Templates: Fully customizable template system
- AJAX Filtering: Real-time product filtering without page reload
- Infinite Scroll: Automatic loading with load more button fallback
- Responsive Design: Mobile-first approach with collapsible filters
- Lightbox Gallery: Custom lightweight image gallery with keyboard navigation
- Specification Tabs: Organized product specifications with tabbed interface
- Breadcrumb Navigation: SEO-friendly breadcrumbs
- Template Override System: Easy customization via theme directory
Requirements
- WordPress 5.8 or higher
- PHP 7.4 or higher
- Advanced Custom Fields PRO
Installation
- Upload the plugin files to
/wp-content/plugins/fs-product-catalog/ - Activate the plugin through the 'Plugins' menu in WordPress
- Ensure ACF Pro is installed and activated
Quick Start
After installation:
- Go to Products in WordPress admin
- Add your first product with title, content, and featured image
- Add product information and specifications using ACF fields
- Assign categories, brands, types, or tags
- View your product on the frontend
Visit the product archive at: yoursite.com/product/
Customization
Template Override System
The plugin uses a template hierarchy that allows you to override any template:
- Theme Directory (checked first):
{your-theme}/fs-product-catalog/ - Plugin Directory (fallback):
{plugin}/templates/
Example: To customize the product card:
- Copy
{plugin}/templates/parts/loop/product-card.php - Paste to
{your-theme}/fs-product-catalog/parts/loop/product-card.php - Modify as needed
For a complete list of available templates, see DEVELOPER.md
CSS Customization
The plugin uses CSS custom properties (variables) for easy styling:
/* Add to your theme's style.css */
:root {
--fs-primary: #ff6b6b; /* Change primary color */
--fs-gap: 1.5rem; /* Adjust spacing */
--fs-border-radius: 8px; /* Change border radius */
}
For complete CSS documentation, see DEVELOPER.md
Hooks & Filters
Common customization examples:
// Change products per page
add_filter('fs_product_posts_per_page', function() {
return 24;
});
// Change archive columns
add_filter('fs_product_archive_columns', function() {
return 4;
});
// Add custom content after product
add_action('fs_product_after_single_product', function() {
echo '<div class="custom-content">Your content here</div>';
});
For complete hooks reference, see DEVELOPER.md
Product Structure
ACF Fields
- Product Information: Repeater field with title and content
- Specifications: Repeater field with tab title and content (tabbed interface)
- Gallery: Multiple images with lightbox support
Taxonomies
- Categories: Hierarchical with image support
- Brands: Non-hierarchical with image support
- Types: Hierarchical with image support
- Tags: Non-hierarchical
Technical Features
- AJAX Filtering: Real-time search and filtering without page reload
- Infinite Scroll: Automatic loading with Intersection Observer API
- Accessibility: ARIA labels, keyboard navigation, screen reader support
- Performance: Conditional asset loading, optimized queries
- Browser Support: Modern browsers with IE11 graceful degradation
- Standards Compliant: Follows WordPress PHP, JavaScript, and CSS coding standards
Documentation
- README.md - This file (user guide and quick start)
- DEVELOPER.md - Complete technical documentation for developers
Changelog
- CHANGELOG.md - Plugin Changelog
Support & Contributing
- Issues: Report bugs via the plugin repository
- Contributing: See DEVELOPER.md for guidelines
- Standards: All code follows WordPress Coding Standards
License
GPL v2 or later - License URI
Credits
Author: Ajith R N
Website: ajithrn.com
Plugin URI: ajithrn.com