WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Twelve
Twenty Twelve Hierarchical Categories Misbehaving - text is layered (5 posts)

  1. SusanJane
    Member
    Posted 1 year ago #

    I am in my third day of creating my first WordPress site, I am using the Twenty Twelve theme. I created 20 categories including some child categories. When I added the first post assigned to a child category, the category list on the site page showed an error: the names of the parent category and the child category are stacked one on top of the other. This continued when I added a post assigned to the parent category.

    Incidentally, or not, I noticed on the Edit Post page, in the Categories pane, the list correctly shows the hierarchy for some posts but not for others. For the posts that are assigned to a category other than the problematic parent or child category, the list of categories correctly shows the parent category with its four children: the children are indented under the parent. For the posts that are assigned to either the problematic parent or child category, the list of categories incorrectly shows the hierarchy: in one case, which is assigned to the parent, the parent is separated from its children and the children are not indented; in the other case, which is assigned to a child category, that child is presented without indention and is separated from the rest of its hierarchy.

    I am hoping y'all know how to show child categories indented on their own line!

  2. SusanJane
    Member
    Posted 1 year ago #

    Looking around a little more, I found
    ticket 10982 that describes the behavior I noted in my second paragraph. That ticket was closed firmly with the statement that the behavior is a feature, not a bug.

    Lucky for me, that particular behavior is not a problem. But the way in which the child category is presented on the blog page on the same line as its parent category is a HUGE problem for me.

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    please post a live link to a post or page to illustrate the problem.

    does the error persist if you switch to an unedited default theme?

  4. SusanJane
    Member
    Posted 1 year ago #

    Here is is:
    The WordPress site is in development behind a firewall, so I cannot link you to it.

    I have given up on the idea of category hierarchies until this problem is solved. I already removed them from the site. So all I am left with now is this image I captured two days ago. Thanks for your help.

  5. SusanJane
    Member
    Posted 1 year ago #

    I found the immediate source of the problem. The following code is generated:

    <div id="secondary" class="widget-area" role="complementary">
    			<aside id="search-2" class="widget widget_search"><form role="search" method="get" id="searchform" action="http://192.168.75.115/" >
    	<div><label class="screen-reader-text" for="s">Search for:</label>
    	<input type="text" value="" name="s" id="s" />
    	<input type="submit" id="searchsubmit" value="Search" />
    	</div>
    	</form></aside><aside id="categories-2" class="widget widget_categories"><h3 class="widget-title">Help Topic Categories</h3>		<ul>
    	<li class="cat-item cat-item-3"><a href="http://192.168.75.115/?cat=3" title="View all posts filed under About">About</a> (3)
    </li>
    	<li class="cat-item cat-item-4"><a href="http://192.168.75.115/?cat=4" title="View all posts filed under Dashboard">Dashboard</a> (2)
    </li>
    	<li class="cat-item cat-item-5"><a href="http://192.168.75.115/?cat=5" title="View all posts filed under Monitoring">Monitoring</a> (1)
    <ul class='children'>
    	<li class="cat-item cat-item-6"><a href="http://192.168.75.115/?cat=6" title="View all posts filed under Monitoring > Alerts">Monitoring > Alerts</a> (1)
    </li>
    </ul>

    You can see that there is no </li> after cat-item-5, the parent category; cat-item-6 is the child category.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic