The category shows as list
-
This is what I get:
Posted by site admin in
* General
@ 9:56 am Edit This | Comments (1)
I want the category to come next to the in and the @ to come after the category. But for some reason, the category shows up as a list thingie. How can I fix this?
http://www.inspired.be/wordpress/index.php – Here you can see the problem.
-
.post-categories ul {display: inline;}
Should do it, I think.
TGUhm? I’m a bit confused, where should I place that code?
This is my current code in the template:
Posted by <?php the_author() ?> in <?php the_category() ?> @ <?php the_time() ?> <?php edit_post_link(); ?> | ?php wp_link_pages(); ?>
<?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>Wouldn’t that unlist the categories everywhere?
Because at the bottom of my page, it has to remain a list.I just opened print.css and wp-layout.css and none of them have something to change into:
.post-categories {display : inline; }
I can’t find anything that is even called categories.To make myself more clear:
Which file should I edit and which line in that file?Add the line Root suggested to wp-layout.css
Just add it.Well its not in your CSS. We are suggesting you add it. Trial and error may be needed but one or other of those two should do it. Display inline does not cascade (I think ) 🙂
I tried it, but it doesn’t work.
Maybe I should show you my template? Because I removed the css file, or so I thought, but than why would that category still show up as a list?It won’t.
You are not using wp-layout.css, you are just using inline styling in your index.php
Put what Root suggested with the rest of your css.
And registering would be cool too.But I don’t have any css anywhere that I know off. So I wouldn’t know where to add it.
This is my index.php code, maybe it helps:
<?include(“../header.php”);?>
<?php
/* Don’t remove this line. */
require(‘./wp-blog-header.php’);
?>
<meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
<meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>
<link rel=”stylesheet” type=”text/css” media=”print” href=”<?php echo get_settings(‘siteurl’); ?>/print.css” />
<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<?php wp_get_archives(‘type=monthly&format=link’); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
</head>
<body>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<?php the_date(”,'<b>’,'</b>’); ?> – <b>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></b>
<?php the_content(); ?>
Posted by <?php the_author() ?> in <?php the_category() ?> @ <?php the_time() ?> <?php edit_post_link(); ?> |
<?php wp_link_pages(); ?>
<?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
<!–
<?php trackback_rdf(); ?>
–>
<?php include(ABSPATH . ‘wp-comments.php’); ?>
<?php endforeach; else: ?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?>
<b><?php _e(‘Categories:’); ?></b>-
<?php wp_list_cats(); ?>
<b><label for=”s”><?php _e(‘Search:’); ?></label></b>
<form id=”searchform” method=”get” action=”<?php echo $PHP_SELF; ?>”>
<div>
<input type=”text” name=”s” id=”s” size=”15″ />
<input type=”submit” name=”submit” value=”<?php _e(‘Search’); ?>” />
</div>
</form>
<b><?php _e(‘Archives:’); ?></b>-
<?php wp_get_archives(‘type=monthly’); ?>
<b><?php _e(‘Other:’); ?></b>
<p class=”credit”><!–<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. –> <cite><?php echo sprintf(__(“Powered by WordPress“), __(“Powered by WordPress, state-of-the-art semantic personal publishing platform”)); ?></cite>
<?include(“../footer.php”);?>Well you have got your CSS inline (in index). Stick it in there.
I added .post-categories {display : inline; } to the css. Now the list goes more the left and the spaces above and under it are gone, but it’s still wrong. It still has a dot infront of it and it still isn’t next to the text.
Thank you havok! It worked 🙂
New problem. It still works, but now the categories don’t show at the bottom.
Categories:
No categories
The topic ‘The category shows as list’ is closed to new replies.