Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4377

    …with linkage to portfolio pages, not to archive lists?

    (question in theory at least).

    I was try to use some breadcrumbs pligins with plugin that remove “/category/” from permalinks (to avoid sending me to archive instead portfolio), but in that case is appears some other problems with pagination (like 404 error) etc.

    Is there may be simpler solution without bugs?

    Thanks!

    #46089

    (I am talking about Display theme).

    #46090

    Hey,

    you can try this plugin: http://wordpress.org/extend/plugins/wp-no-category-base/ – it’s compatible with Display. Maybe you need to flush the permalinks. Go to Settings > Permalinks and click on “save”.

    #46091

    I was try to use this plugin, and flush permalinks (I use /%category%/%postname%/) – but several bugs here:

    first is portfolio pages and subpages looks like archive lists now, second is clicking to any portfolio or blog item I got 404 error.

    I was find another solution how to remove /category/ – write in functions.php:

    add_filter(‘user_trailingslashit’, ‘remcat_function’);

    function remcat_function($link) {

    return str_replace(“/category/”, “/”, $link);

    }

    add_action(‘init’, ‘remcat_flush_rules’);

    function remcat_flush_rules() {

    global $wp_rewrite;

    $wp_rewrite->flush_rules();

    }

    add_filter(‘generate_rewrite_rules’, ‘remcat_rewrite’);

    function remcat_rewrite($wp_rewrite) {

    $new_rules = array(‘(.+)/page/(.+)/?’ => ‘index.php?category_name=’.$wp_rewrite->preg_index(1).’&paged=’.$wp_rewrite->preg_index(2));

    $wp_rewrite->rules = $new_rules + $wp_rewrite->rules;

    }

    This works ALMOST fine. Only one thing is if I have pagination on portfolio or on blog / tag / any archives and when I click on page 2 and above I got 404 error. I can remove pagination, but its so many items are make long page loading. Well, need to deside – use breadcrumbs without pagination, or vise versa. May be you know how I can make work pagination on second and more pages with this ‘remcat_function’ ? Or I just remove the breadcrumbs and forget about it..

    Added:

    Sorry, I write:

    “…on portfolio or on blog / tag / any archives and when I click on page 2 and above I got 404 error.”

    This is not right.

    When I click on page 2 in portfolio – then my portfolio becomу as archive list. I got 404 error only when try to press page 2 in pagination on Category archive or tags archive pages.

    #46092

    I’d recommend using wp-pagination: http://wordpress.org/extend/plugins/wp-paginate/

    Download the plugin and activate it. Then open up template_portfolio.php and replace:

    kriesi_pagination($query_string);

    with:

    wp_paginate();

    #46093

    I try to used wp_pagination plugin, but with no result. It looks like pagination works fine (both – kriesi and wp_pagination), but something wrong with my removed /category/ from permalink. I still got archive list with my portfolio items when I press any buttons from pagination in my portfolio, and got 404 error when press it in category/tag archives.

    May be it can be tuned in wp-pagination settings with Previous Page: and Next Page: settings? Also may be this issue due to my old version of wordpress (2.9)… Really do not know.

    Well, I tought it need just to remove of that troubled chain of action with breadcrumbs together. Thanx.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Is it possible to add breadcrumbs in single post with…’ is closed to new replies.