WordPress.org

Ready to get started?Download WordPress

Forums

WPtouch Mobile Plugin
[resolved] [Plugin: WPtouch] Tag/Categories aggregate pages result in 404 (2 posts)

  1. gilzow
    Member
    Posted 1 year ago #

    Just installed v1.9.5.1 of wpTouch on a wordpress install (v3.4.1). The menu displays the tags and categories correctly, including the post count under each. I currently have two categories excluded (by id, separated by a comma) in the wpTouch settings. When the user navigates to the menu item (tag/category), wpTouch responds with a 404 (wordpress indicates no posts found). These are standard posts; not custom post objects. If I remove the excluded categories, then posts appear.

    Any ideas/suggestions? I can dig in deeper into the code tomorrow, but thought someone might have some tips off the top of their head.

    http://wordpress.org/extend/plugins/wptouch/

  2. gilzow
    Member
    Posted 1 year ago #

    ok, i figured it out. We have a category 'Delete' that we use to internally designate a post that needs to be reviewed and most likely deleted. since this is a dev copy of the site, all of the posts were categorized as 'delete'. The way in which WPTouch queries the posts, in how it handles the exclusion of categories/tags, is to not select any posts that are categorized with any of the excluded categories. Mostly makes sense, except wptouch doesnt use that same method when creating the list of categories and the count of posts in that category. So while the 'Sports' category menu item stated 15 posts, when you clicked on that menu item, you ended up with zero posts (or wpTouch's 404 statement) because all 15 were categorized not only as 'sports' but also as 'delete'.

    It would probably help if wpTouch used a "no posts in this category" message instead of a 404 message in these situations. Or at least include some type of indication that it isnt REALLY a 404, but no matching posts.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.