Title: Changing product permalink
Last modified: August 22, 2016

---

# Changing product permalink

 *  [AshwinMeta](https://wordpress.org/support/users/ashwinmeta/)
 * (@ashwinmeta)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/changing-product-permalink/)
 * Hi Team
 * I’m looking to try and change the permalink of my products to /%custom_category%/
   productname – not quite sure of how to insert the additional string in. I found
   a post which mentioned changing the rewrite array slug to remove ‘product’ (which
   I’ve done, as below) – but I’m not sure which string / element to edit to insert
   the category into the permalink instead. Grateful for any help.
 *     ```
       register_post_type( 'grid_products',
       		array(
       			'labels' => array(
       				'name' => __( 'Products' ),
       				'singular_name' => __( 'Product' ),
       				 'add_new' => _x('Add New Product', 'Product'),
           'add_new_item' => __('Add New Product'),
       				'edit_item'	=>	__( 'Edit Product'),
       				 'view_item' => __('View Product'),
       				'add_new_item'	=>	__( 'Add Product')
   
       			),
       			'public' => true,
       			'menu_position' => 10,
       			'menu_icon' => plugins_url( 'images/product_edit.png', __FILE__ ),
       			'show_ui' => true,
       			'capability_type' => 'post',
       			'rewrite' => array( 'slug' => 'post', 'with_front' => false ),
       			'taxonomies' => array( 'Products '),
       			'supports' => array(
       			 'title',
       	  'editor',
       	  'excerpt',
       	  'revisions',
       	  'thumbnail',
       	  'custom-fields',
       	  'author',
       	  )
       ```
   
 * [https://wordpress.org/plugins/grid-products/](https://wordpress.org/plugins/grid-products/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [AshwinMeta](https://wordpress.org/support/users/ashwinmeta/)
 * (@ashwinmeta)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/changing-product-permalink/#post-5423848)
 * Also, I’m looking to remove author and publish date from my product posts. Grateful
   for anyone who can tell me how to do that too!
 * Cheers!
 * Ash
 *  Plugin Contributor [ModDish](https://wordpress.org/support/users/moddish/)
 * (@moddish)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/changing-product-permalink/#post-5424001)
 * remove
    `'author',`
 * for post date thats part of your single template
 * you could just create a new single template for the post type products
 * single-Products.php then lay that out and remove what you do not want displayed.
 * not sure what you mean in the first part with the permalink, please clarify
 * Thanks
    Evan
 *  Thread Starter [AshwinMeta](https://wordpress.org/support/users/ashwinmeta/)
 * (@ashwinmeta)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/changing-product-permalink/#post-5424184)
 * Hi Evan,
 * Thanks for your reply! I’d like to try and get the permalink to be
 * ../categoryname/productname
 * as opposed to just ‘post’ – which I have at the moment
 * Check out my site as it is, at the mo – [http://thtc.co.uk/about-thtc/awards](http://thtc.co.uk/about-thtc/awards)
 * So ideally, I’d like the permalink for each of those product to read [http://thtc.co.uk/awards-accreditations/(postname)](http://thtc.co.uk/awards-accreditations/(postname))
 * Thanks!
 * Ash

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing product permalink’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/grid-products.svg)
 * [Grid Products](https://wordpress.org/plugins/grid-products/)
 * [Support Threads](https://wordpress.org/support/plugin/grid-products/)
 * [Active Topics](https://wordpress.org/support/plugin/grid-products/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/grid-products/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/grid-products/reviews/)

## Tags

 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [AshwinMeta](https://wordpress.org/support/users/ashwinmeta/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/changing-product-permalink/#post-5424184)
 * Status: not resolved