• Hi Alberto, and thanks for writting this great plugin. Could have a posibility to add an option in the plugin configuration for not using the blog base permalink?

    In the file classes/class-perfect-woocommerce-brands.php at line 621 of the latest version (1.6.0), where you are preparing the options to register the taxonomy, would be very useful to add the rewrite option 'with_front' => false, that way we have the brands in the root of site.

    Best regards and thanks a lot again,
    Miguel.

    • This topic was modified 7 years, 3 months ago by .
    • This topic was modified 7 years, 3 months ago by .

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor titodevera

    (@titodevera)

    Hola mfcorral.

    Gracias al filtro register_taxonomy_args puedes manipular los argumentos de cualquier taxonomía que registre otro plugin o tema.

    
    add_filter( 'register_taxonomy_args', function( $args, $taxonomy ){
      if( 'pwb-brand' === $taxonomy && is_array( $args ) ){
        $args['rewrite']['slug']       = '.';
        $args['rewrite']['with_front'] = false;
      }
      return $args;
    }, 99, 2 );
    

    Después de agregar el código no olvides actualizar tus permalinks Ajustes > Enlaces permanentes > Guardar cambios

    Con esto podrías pasar de https://www.farmaciaadrio.com/marcas/bicame/ a https://www.farmaciaadrio.com/bicame/

    Un saludo

    Thread Starter Miguel Fernández Corral

    (@mfcorral)

    Muchas gracias por contestar tan rápido. Usaré ese filtro entonces.

    Un saludo,
    Miguel.

    Plugin Contributor titodevera

    (@titodevera)

    De nada Miguel, un saludo y gracias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable inheriting blog base permalink’ is closed to new replies.