WordPress.org

Ready to get started?Download WordPress

Forums

No Categories (categories not usable) (9 posts)

  1. aajax
    Member
    Posted 1 year ago #

    I just setup a new website using WordPress Version 3.5 (WP3.5). I have a couple of posts and several categories. The categories show up (are displayed) with the post. However, the Category widget says there are no categories. I'm very much depending on being able to use categories to filter the list of posts that are going to be displayed. If the widget doesn't work the site will be unusable.

    I'm not aware of any setup that is used to make the Category Widget work. I've tried three different themes including both of those that are in the base WP3.5 release.

    What do I need to do to make categories work?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Can you replicate the problem using the default theme with all plugins deactivated?

  3. aajax
    Member
    Posted 1 year ago #

    Yes!!!

  4. aajax
    Member
    Posted 1 year ago #

    Some further troubleshooting points to the idea that this problem pertains to "Private" rather than "Public" posts. In that, the site is intended for private usage and most posts will be private. When I posted this topic I had no public posts on the site. When I tried adding a public post the categories for it worked as expected.

    Therefore, it looks like the subject of this topic should be "Categories are not usable for private posts". Insofar as I only need private posts this is quite serious.

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Private posts can only be viewed using a special query or via the Dashboard. So assigning public categories to them doesn't make any sense. The category widget only shows categories that contain published (non-private) Posts by design.

  6. aajax
    Member
    Posted 1 year ago #

    Oh my, I've been using WP for years and have never experienced the idea that categories need to be qualified as being public. With respect to sense, it makes lots of sense to me that categories are a property of a post that is independent of its' visibility status. Further experimentation also indicates that categories work fine for "protected" content as well. To me what makes no sense is for categories to have anything to do with what WP calls "visibility".

    Furthermore, it seems to make sense to WP insofar as you can assign categories to private posts and the categories are displayed along with the private post. I can appreciate that the concept of private should be such that the category widget should not include categories for private posts when the site is being viewed by the public (unknown users). From a design point of view it appears as though there is logic that is dynamically determining what categories should be visible based on the users visibility status. It is quite perplexing why it would be trying to create an erroneous view the way it is.

    Users who qualify for viewing private content do have a dashboard but when using the dashboard to view the site it seems reasonable to expect that they are obtaining a normal rather than perverted view of the site. For the widget to say there are "no categories" when the the user can see them displayed on the screen is simply a false and misleading representation which likely causes users to question the accuracy of the Category Widget.

    I'm inclined to think that whatever there is about this notion that can be called senseless has more to do with some implementation difficulty, or possibly convenience, than what would be logically and rationally expected from site operators and end users.

    Is it possible to obtain any tips on how one might proceed to alter the design to affect a more rationale result?

    Many thanks!!!

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    have never experienced the idea that categories need to be qualified as being public

    No - I said that Posts needed to be public. By default wp_list_categories() (and the widget built on it) will ignore private Posts when generating a list of populated categories. Otherwise, non-logged in users will be presented with empty category pages.

    The only other option that I know of is a coded solution - ie to create a walker for wp_list_categories and, in effect, roll your own category list.

  8. aajax
    Member
    Posted 1 year ago #

    By default wp_list_categories() (and the widget built on it) will ignore private Posts ...

    Are you saying that I should look at changing wp_list_categories so that it doesn't ignore them?

    I don't quite grasp how ignoring Posts has the affect of insuring that the resulting list contains information. I would think that ignoring Private Posts might be an effective way to prevent non-logged in users (the Public) from finding out that such posts which are not visible to them exist. This sounds like a good idea which would be consistent with the notion of privacy. However, failing to remove indicators that invisible Posts exist is a minor discrepancy when compared to what I am experiencing.

    I've also found some more inconsistencies which ought to be troubling to site operators. When you select "Categories" on the sub-menu for Posts on the Dashboard you are shown a table which lists all the categories with some columns which contain information about them. One of the columns contains links that show the number of Posts. When you select that link all of those Posts are displayed in a list. In my case the link says zero (0) but you can still select the link and see all of the Private Posts. Is this contradiction a design objective? Likewise, as I previously stated the pages with a Category Widget that says that there are No Categories shows Categories on the Posts and if you select that link you get a page that lists all of the corresponding Private Posts. Is this the way to make users confident in the accuracy of the Category Widget?

    It is not intuitively obvious why the inclusion|omission of Private Posts cannot be dependent on the visibility that is in effect. In that, ignore Private Posts for Public (non-logged in) Users but include them for Private (logged in) Users. In that, in the same manner used to determine which Posts are visible.

    I'm thinking I should get rid of the senseless Category Widget and use a Sticky Post which is assigned to all of the Categories. Then I get what the Category Widget should be producing but in a somewhat less elegant manner.

    I'd also like to point out that the same logic defects seem to pertain to the "Recent Posts" and "Recent Comments" widgets.

  9. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Are you saying that I should look at changing wp_list_categories so that it doesn't ignore them?

    Yes but, be warned, the custom coding you'll need is fairly advanced.

    Is this contradiction a design objective?

    Yes - on that the displayed number indicates the non-private posts in that category.

Topic Closed

This topic has been closed to new replies.

About this Topic