Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1441462

    Hi,
    I created 2 portfolio categories and associated portfolio entries to each category, in the front-end all portfolio entries (in breadcrumbs) display the same category, can you help me?
    The site is under development

    #1441542

    Hey auxonet,

    Thank you for the inquiry.

    Would you mind providing links to the portfolio items associated with a specific category? Or share the login details in the private field so that we can access the dashboard.

    Best regards,
    Ismael

    #1442817

    Hi Ismael, news?

    #1443001

    Hi,
    When I check your site I see four portfolio categories:
    Enfold Support 5754
    and the breadcrumbs seem correct for each category:
    Enfold Support 5756
    please explain the error that you see further, perhaps a screenshot would help.

    Best regards,
    Mike

    #1443181

    Hi Mike,
    When you select: ‘Heron 80 or Tucano or Colibrì or Falcone Rei +’ the correct path should be:
    You are in:Home/Products/HERON 80
    and not
    You are in:Home/Components/HERON 80

    #1443223

    Hi,

    The category of the portfolio will not be included in the URL by default, only the Portfolio Items Base and the Portfolio Categories Base. Did you set “Components” as the value of either the Portfolio Items Base or the Portfolio Categories Base field in the Settings > Permalinks panel?

    Please provide the login details in the private field. We may need to access the dashboard in order to properly understand the issue.

    Best regards,
    Ismael

    #1443227

    The category ‘components’ is not set as the basic category

    #1443350

    Hi,

    Thank you for the info.

    We added this filter in the functions.php file to fix the breadcrumb trail:

    add_filter('avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 20, 2);
    
    function avia_breadcrumbs_trail_mod($trail, $args)
    {
        if (is_singular('portfolio')) {
            $home = $trail[0];
            $last = array_pop($trail);
    
            // Get the first term from the taxonomy 'portfolio_entries'
            $terms = get_the_terms(get_the_ID(), 'portfolio_entries');
    
            if (!empty($terms) && !is_wp_error($terms)) {
                $term = array_shift($terms);
                $link = '<a href="' . get_term_link($term) . '">' . $term->name . '</a>';
                $link = preg_replace('!rel=".+?"|rel=\'.+?\'|!', "", $link);
                $link = str_replace('<a ', '<a rel="v:url" property="v:title" ', $link);
                $link = '<span typeof="v:Breadcrumb">' . $link . '</span>';
    
                $trail[1] = $link;
                array_push($trail, $last);
            }
        }
        return $trail;
    }
    

    Best regards,
    Ismael

    #1443362

    Hi Ismael,
    perfect now it works, thank you

    #1443382

    Hi,

    Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.