Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Permalinks

Home / Forums / Ascend Theme / Permalinks

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
August 9, 2017 at 12:01 pm

Hello,
I use Ascend premium, and i have a problem with permalinks.
Could you tell me how to configure them ?
I installed woocommerce and filter by categories and brands.
My actual settings :
personnalized stucture: /%category%/%postname%/
base : /marque/%product_brand%/categorie/%product_cat%/

I also added wc-brands woocommerce instructions in functions.php :
//add_action(‘init’,’set_rules’);
function set_rules(){
global $wp_rewrite;
//Call flush_rules() as a method of the $wp_rewrite object
$wp_rewrite->flush_rules( );
}
add_filter(‘register_taxonomy_product_brand’,’set_registed_taxonomy_product_brand’);

function set_registed_taxonomy_product_brand($args){

$args[‘rewrite’][‘slug’]= ‘marque’; // Replace ‘custom-slug’ with your desired slug.;
$args[‘labels’][‘name’]=’Marque’;
$args[‘labels’][‘singular_name’]=’Marque’;
$args[‘label’]=’Marque’;

return $args;
}
Categories display but products don’t.

Need help please.

  • The forum ‘Ascend Theme’ is closed to new topics and replies.