Tagged: permalink, Portfolio, portfolio category, URL Structure
-
AuthorPosts
-
August 11, 2017 at 4:09 pm #837495
Hi there,
I’m currently trying to make it so the portfolio pages include the portfolio category tag in the URL permalink structure, instead of just the custom slug created on the permalink page. For example, I want it to display like this /portfolio-tag/portfolio-category/post-name
I have tried inserting numerous codes into the functions.php file, (including the one below). I have also tried using plugins such as Permalink Manager Lite and Custom Post Type Permalinks, but I was unsure how to make the edit.
Is there anything else I can do? I browsed the general WordPress forum as well, but they seemed to point me back to theme support.
Thank you for your help!
if(!function_exists(‘avia_modify_single_portfolio_breadcrumb’))
{
function avia_modify_single_portfolio_breadcrumb($trail)
{
if(!is_single() || get_post_type() != ‘portfolio’) return $trail;
$category = get_the_category(get_the_ID());
$newtrail = array();$parents = get_the_term_list(get_the_ID(), ‘portfolio_entries’, ”, ‘$$$’, ” );
$parents = explode(‘$$$’,$parents);
if(!empty($parents[0])) $newtrail[] = $parents[0];return $newtrail;
}add_filter(‘avia_breadcrumbs_trail’,’avia_modify_single_portfolio_breadcrumb’);
}August 15, 2017 at 6:01 am #839068Hey sschankesp,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Best regards,
John TorvikAugust 15, 2017 at 2:12 pm #839288This reply has been marked as private.August 17, 2017 at 3:28 pm #840448Hi sschankesp,
This kind of customization is a quite complex one and I am afraid is not covered by our basic support. You might want to use the plugins that you mention above, just read the documentation, or hire a freelancer to do it for you. The theme does not handle permalinks. The snippet you have above is just for breadcrumbs and it does not handle permalinks.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.