This code enables the shop owner to set the product category which displays on the shop page per product. The code :
- Adds a drop down selection menu on the edit product screens General tab allowing the admin to select which category to display on the shop page.
- Adds the product category link to the shop page items.
- Adds the 1st category assigned to the product if none selected from the drop down.
The code only displays 1 category link for each product on the shop page.
Video Demo
Shows the product category selected from the drop down menu on the single product edit screen showing as the category link on the shop page.
Code Installation
There’s only 1 step : Copy and paste the PHP code to the end of your child themes functions.php file or custom functionality/code snippets plugin.
Optional
CSS included to center elements on the shop page.
Reviews
There are no reviews yet.