Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.This reply has been marked as private.
Yes, that is the problem, it should not go to the category page but go back to the page it come from. For example home/report click on BK africa url is home// news/ bk africa. I dont understand why there is bk afrika. It should be home/report/ bk afrika. And if click in the breadcrumb report should gi back report page not the category page.
This reply has been marked as private.This reply has been marked as private., I tried differnt settings, made a new catergory -> report but it still doens’t work properly. Now the breadcrumb have a double slash and stil go to the category page. Could you please have a look?
Sorry, I made a new one:
- This reply was modified 1 year, 1 month ago by Rikard.
This reply has been marked as private.And I want my breadcrumb under the header. It’s there already but ofcourse it is not working on mobile. I think I can place in the function php but I dan’t know how. Thanks again!
This reply has been marked as private.Thank you so much! It’s working!
Hi Ismael,
thank you so much!
Have a nice weekend,greetings ineke
This reply has been marked as private.Goodmorning,
yes, I thought (hoped ;-)) it would show it too, but every post shows the same categorie. -> example: http://dash-journal.com/tag/amsterdam/
It works well in the loop-index.php, but not in postslider.php. I had to change the code a bit, but obviously I did something wrong….
So in the loop-index.php the code is:
$category = get_the_category(); if(!empty($category)) { echo '<span class="blog-categories minor-meta">Published '.__('in','avia_framework')." "; echo '<a href="' . get_category_link( $category[0]->term_id ) . '">' . $category[0]->cat_name . '</a>'; echo '</span>'; //echo '</span><span class="text-sep text-sep-cat">/</span>'; }
in the postslider.php:
$category = get_the_category(); if(!empty($category)) { $output .= '<span class="blog-categories minor-meta">Published '.__('in','avia_framework')." "; $output .= '<a href="' . get_category_link( $category[0]->term_id ) . '">' . $category[0]->cat_name . '</a>'; $output .='</span>'; }; }
Hi Ismael, thanks for your reply.
But now I have one more question, the last one! ;-)
I want to show in what issue nr(=categorie) the post is shown. I tried the best I could but I can’t get the right cat to show up.
This is what I did:if($show_meta && !empty($excerpt)) { $output .= "<div class='slide-meta'>"; if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio') { $link_add = $commentCount === "0" ? "#respond" : "#comments"; $text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' ); $output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>"; } $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup)); $category = get_the_category(); if(!empty($category)) { $output .= '<span class="blog-categories minor-meta">Published '.__('in','avia_framework')." "; $output .= '<a href="' . get_category_link( $category[0]->term_id ) . '">' . $category[0]->cat_name . '</a>'; $output .='</span>'; }; //$output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>"; $output .= "</div>"; }
but in this way only a “random cat” is shown. Could you help me out?
Thanks!
Hi Ismael,
Thanks!
Finally I used this: (to keep the link working)$category = get_the_category(); if(!empty($category)) { echo '<span class="blog-categories minor-meta">Published '.__('in','avia_framework')." "; echo '<a href="' . get_category_link( $category[0]->term_id ) . '">' . $category[0]->cat_name . '</a>'; //echo '</span><span class="text-sep text-sep-cat">/</span>'; } gr. ineke
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Hey Josue,
I’ve updated the the theme but the problem is still there.. -
AuthorPosts