WordPress.org

Ready to get started?Download WordPress

Forums

Cat + Tag Filter
Is Pretty Permalinks my problem? (8 posts)

  1. NCDD
    Member
    Posted 1 year ago #

    Hi ajayver... I'm having multiple issues with your plugin and I'm wondering if using "pretty permalinks" is the issue. Sorry about the long explanation...

    Our base url permalink string is "ncdd.org/rc/item". The logic to this naming convention is that each blog post is an "item" in a resource center.

    So manually typing "ncdd.org/rc/item/tag/tag-name" generates the proper list of posts and paginates correctly.

    So does, "ncdd.org/rc/item/category/category-name".

    When using the plugin and only choosing a category it generates "ncdd.org/rc/category/category-name" which sends a user to a 404 page, note the missing "/item".

    Strangely though, the plugin generates "ncdd.org/rc/category/category-name/tag/tag-name" (with no "/item") when choosing both a category and a tag and this works on page one. However, pagination, adding "/page/2" to the end of the url, sends the user to a 404 page.

    Manually adding "/item" to the above, "ncdd.org/rc/item/category/category-name/tag/tag-name", also sends a user to a 404 page.

    I realize that removing the "/item" in the custom permalink might correct the issue. Unfortunately, we have too many absolute links that use the "/rc/item" structure on our site and on other sites to make that a reasonable solution. Also, it wouldn't necessarily have any impact on the pagination addition leading to the 404.

    I'm using the latest version, have refreshed and revisited my blogs rewrite rules and even tweaked your code a little thinking it was an issue with adding the "/item" element of the custom permalink. But this behavior doesn't change.

    Can you give me your thoughts on this?

    Thank you.

    http://wordpress.org/extend/plugins/cat-tag-filter-widget/

  2. ajayver
    Member
    Plugin Author

    Posted 1 year ago #

    Hi! Can you try the previous version please cat-tag-filter-widget.0.8.5.zip ?
    If it works, then I probably know what the problem is and will fix it in the next version.
    Thanks!

  3. NCDD
    Member
    Posted 1 year ago #

    Hi ajayver! I'll certainly do that.

  4. NCDD
    Member
    Posted 1 year ago #

    Hi ajayver!

    Yes, it has returned to working as it had in the past.

    Choosing both a tag and a category results in the following url...
    http://ncdd.org/rc/?category_name=reports-articles&tag=dialogue

    Paginating the above gives me this...
    http://ncdd.org/rc/page/2?category_name=reports-articles&tag=dialogue

    Choosing just a category results in this...
    http://ncdd.org/rc/item/category/reports-articles

    Choosing just a category + pagination...
    http://ncdd.org/rc/item/category/reports-articles/page/2

    Both are reasonable urls from our point of view, and both give the results that are expected.

    Thank you for looking into this for us!

  5. qingthings
    Member
    Posted 1 year ago #

    Hello ajayver,

    Reinstalling with the earlier version solved my similar problem, too. (thanks for posting NCDD)

    I'm using a slightly modified cat/tag.php (child theme of twentyeleven) and was also experiencing no content on page 2, plus a deselection of tag checkbox marks.
    The older version does produce un-prettied permalinks, but it functions correctly.

    Looking forward to the next version.

    Thank You for the info and earlier version link.

  6. ajayver
    Member
    Plugin Author

    Posted 1 year ago #

    I've fixed the pagination problem in 0.9.1, but still don't understand the issue with "item" in url. Can you tell what exact options are set in permalinks settings?

  7. NCDD
    Member
    Posted 1 year ago #

    We use the Custom Structure setting (last on the permalinks option list) which allows you to choose how your permalink will be structured. In our case, WordPress takes the blogs root location, "ncdd.org/rc", and adds "/item/%post_id%".

    As I conjectured above, I'm wondering if the addition of "item" is the problem here, but we're kind of stuck with an internet full of absolute links to our resources with "item" in their urls.

    The behavior, as I described in my first post, is kinda confusing.

  8. ajayver
    Member
    Plugin Author

    Posted 1 year ago #

    But what you change is a posts url. It has nothing to do with categories url and tags url.
    So the posts url base should be ncdd.org/rc/item/[post-name]
    base for categories is ncdd.org/rc/category/[cat-name] and ncdd.org/rc/tag/[tag-name] for tags.

    But I see that your categories also have "item" in url, but they shouldn't. Did you change the category base?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.