Log in to support

Portfolio URL Rewrite

Portfolio URL Rewrite

The portfolio URLs in Flexform by standard follow the following format:

?portfolio=item-name

If this isn’t to your liking, then it can easily be changed to use this format:

/portfolio/item-name

 

All you have to do is edit /includes/custom-post-types/portfolio-type.php, change line 48 to:

'rewrite' => true

and line 50 to:

'has_archive' => false,

Then, as long as you have permalinks enabled (not default) in Settings > Permalinks, you will have SEO friendly URLs.

If you’d like not to have /portfolio in the URL, then try this plugin:

http://wordpress.org/extend/plugins/remove-slug-from-custom-post-type/

– Ed

0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">