November 13, 2011 at 9:46 pm #6920
Is there a way to manipulate the breadcrumb links?
im having a porfolio with multiple categories. When i’m viewing a portfolio item from category X, the breadcrumbs show: ….category-x/portfolioitem
When you click the ‘category-x’ a ‘Archive for :” page opens (with sidebar i dont want to use, etc).
What I would like is that when you are on the ‘portfolio item page’ and click on ‘category-x’, the page that shows the portfolio is displayed.
Hope anyone can helpNovember 14, 2011 at 6:37 am #55903
one or more user requested this feature in the past but the current framework/breadcrumb class isn’t laid out for this breadcrumb structure. I reported the request to Kriesi. (The main problem is that wp doesn’t know to which portfolio page the single item is assigned to and that cases can occur where two or more portfolio pages show this item and you can’t just display one portfolio page in the breadcrumb without loosing information.)November 14, 2011 at 10:38 am #55904
Thanks for your reply.
So what do you suggest to ‘work around’ this?
Isnt there a way to set another template instead of the archive page?
Also I noticed the current page gets the ‘current_crumb’ class. It would be nice if the other crumbs also get a class so i can give them a ‘display:none;’ and the problem would be solved.
Any suggestions (code) how to achieve this?November 14, 2011 at 12:28 pm #55905
For the breadcrumb class I added ‘class=”breadcrumb_inbetween”‘ to the code of the class-breadcrumb.php’ file. this works for ‘normal’ pages. Still looking for a solution to also add this to the ‘portfolio category’ pages, any suggestions?
$markup = $this->options.$this->options.$this->options;
$my_query = get_post($der_post->post_parent);
$link = ‘<a class=”breadcrumb_inbetween” href=”‘;
$link .= get_permalink($my_query->ID);
$link .= ‘”>';
$link .= ”. get_the_title($my_query->ID) . ”. $markup;
}November 15, 2011 at 7:59 am #55906
I’m not aware of a workaround. It’s pretty tricky because quick hacks like “http_refer” don’t work every time and can output wired results and “professional” solutions would require some framework changes.November 15, 2011 at 10:26 am #55907
Ok I noticed that the breadcrumbs does not display the name of the ‘portfolio’ page.
In the theme options you can set “Which page should display the portfolio?”
This page does not show up in the breadcrumbs, how can we fix this?November 16, 2011 at 1:20 pm #55908November 16, 2011 at 2:34 pm #55909
That’s exactly the same problem. You can’t display the name of the portfolio page in the breadcrumbs but only the portfolio category name because wordpress doesn’t know to which portfolio page the single item is assigned to.March 9, 2012 at 3:11 pm #55911March 9, 2012 at 9:35 pm #55912
The topic ‘breadcrumb links’ is closed to new replies.