Custom Woocommerce Category view

If you create your own shortcode based on the product category shortcode function duck_product_categories( $atts ) { global $woocommerce_loop; $atts = shortcode_atts( array( ‘number’ => null, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘columns’ => ‘4’, ‘hide_empty’ => 1, ‘parent’ => ”, ‘ids’ => ” ), $atts ); if ( isset( $atts[‘ids’] ) ) { $ids … Read more

Back to category link

Use echo get_cat_name( $cat ); instead of the_category() inside the link. the_category() returns a link, so you will have a link within a link.

Multiple Parent Category URLs

You shouldn’t need to do any of that. When you set up a category in the backend of a WordPress website, the archive is normally created/taken care of for you. So if you create a category called ‘Massive Dogs’ and you got to “/massive-dogs’ after you have created a post in that category (and the … Read more

Create custom Perma link

Just go to Settings > Permalinks, select Custom Structure and enter the following: /blog/%postname%/ That will add /blog/ to the beginning of post names in their permalinks. This will not affect Pages.