Title: Changing portfolio permalink
Last modified: August 24, 2016

---

# Changing portfolio permalink

 *  Resolved [Zilla](https://wordpress.org/support/users/dawnzillamonster/)
 * (@dawnzillamonster)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/)
 * Hi there,
 * I wanted to change the portfolio permalink and found these directions:
 * > That is actually changed in the virtue toolkit plugin.
   >  Open up the plugin 
   > and you will see post-types.php Open that file. Find line 27 and delete that
   > line for this:
   > `'rewrite' => array( 'slug' => 'artists' ), /* you can specify its url slug*/`
   > Save the file.
   >  In wordpress go to settings > permalinks and click that save
   > changes button at the bottom.
 * I have done this, but no luck. The portfolio slug is still ‘portfolio’. Any ideas?

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

 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115339)
 * Have you tried clearing your cache? Can you post a link?
 * Hannah
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115384)
 * Hey, Those directions are out dated.
 * Now you can just use a filter in your child themes functions.php file.
    `add_filters('
   kadence_portfolio_permalink_slug', 'artists');`
 * Kadence Themes
 *  Thread Starter [Zilla](https://wordpress.org/support/users/dawnzillamonster/)
 * (@dawnzillamonster)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115395)
 * Tried the filter. Got error message:
 * > Fatal error: Call to undefined function add_filters()
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115421)
 * Sorry, Not thinking.. here is the correct code:
 * add_filter( ‘kadence_portfolio_permalink_slug’, function() { return ‘artists’;});
 * Kadence Themes
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115422)
 * After you add be sure to re-save your permalinks in settings > permalinks.
 * Kadence Themes
 *  Thread Starter [Zilla](https://wordpress.org/support/users/dawnzillamonster/)
 * (@dawnzillamonster)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115428)
 * That also broke the site:
 * > Parse error: syntax error, unexpected T_FUNCTION
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115429)
 * Hmm, I test that. Where are you adding?.. your adding right in your child theme
   functions.php file? Are you copying from here?
 * `add_filter( 'kadence_portfolio_permalink_slug', function() { return 'artists';});`
 * Kadence Themes
 *  Thread Starter [Zilla](https://wordpress.org/support/users/dawnzillamonster/)
 * (@dawnzillamonster)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115430)
 * Yep, adding in child theme functions.php. Copied exact code. Just did it again
   and got same parse error.
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115431)
 * Is there anything else in your child themes functions file?
 * Kadence Themes
 *  Thread Starter [Zilla](https://wordpress.org/support/users/dawnzillamonster/)
 * (@dawnzillamonster)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115432)
 * Nope, nothing else.
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115433)
 * ok are you starting with `<?php` at the top for the php doc?
 * Try changing to a function like this:
 *     ```
       add_filter( 'kadence_portfolio_permalink_slug', 'custom_portfolio_slug');
   
       function custom_portfolio_slug() {
       	return 'artists';
       }
       ```
   
 * Kadence Themes
 *  Thread Starter [Zilla](https://wordpress.org/support/users/dawnzillamonster/)
 * (@dawnzillamonster)
 * [11 years ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115435)
 * YES! That did it. Thanks so much for all of your help!
 *  [letopis](https://wordpress.org/support/users/letopis/)
 * (@letopis)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115584)
 * Hello.
    I’m try do this, but not work. URL change, but when i try to open link–
   error 404.
 * This case actually is now?
 * Thanks!
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115585)
 * letopis,
    Can you please start a new thread and provide a link to your site? 
   Thanks!
 * Hannah

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/virtue/3.4.15/screenshot.png)
 * Virtue
 * [Support Threads](https://wordpress.org/support/theme/virtue/)
 * [Active Topics](https://wordpress.org/support/theme/virtue/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/virtue/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/virtue/reviews/)

## Tags

 * [custom slug](https://wordpress.org/support/topic-tag/custom-slug/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [virtue theme](https://wordpress.org/support/topic-tag/virtue-theme/)

 * 14 replies
 * 4 participants
 * Last reply from: [hannah](https://wordpress.org/support/users/hannahritner/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/changing-portfolio-permalink-1/#post-6115585)
 * Status: resolved