Forums

The category shows as list (16 posts)

  1. Anonymous
    Unregistered
    Posted 8 years ago #

    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.

  2. TechGnome
    Moderator
    Posted 8 years ago #

    .post-categories ul {display: inline;}
    Should do it, I think.
    TG

  3. Anonymous
    Unregistered
    Posted 8 years ago #

    Uhm? 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 (%)')); ?>

  4. Anonymous
    Unregistered
    Posted 8 years ago #

    Wouldn't that unlist the categories everywhere?
    Because at the bottom of my page, it has to remain a list.

  5. Anonymous
    Unregistered
    Posted 8 years ago #

    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.

  6. Anonymous
    Unregistered
    Posted 8 years ago #

    To make myself more clear:
    Which file should I edit and which line in that file?

  7. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Add the line Root suggested to wp-layout.css
    Just add it.

  8. Root
    Member
    Posted 8 years ago #

    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 ) :)

  9. Anonymous
    Unregistered
    Posted 8 years ago #

    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?

  10. Mark (podz)
    Support Maven
    Posted 8 years ago #

    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.

  11. Anonymous
    Unregistered
    Posted 8 years ago #

    But I don't have any css anywhere that I know off. So I wouldn't know where to add it.

  12. Ann
    Member
    Posted 8 years ago #

    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");?>

  13. Root
    Member
    Posted 8 years ago #

    Well you have got your CSS inline (in index). Stick it in there.

  14. Ann
    Member
    Posted 8 years ago #

    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.

  15. Ann
    Member
    Posted 8 years ago #

    Thank you havok! It worked :-)

  16. Ann
    Member
    Posted 8 years ago #

    New problem. It still works, but now the categories don't show at the bottom.
    Categories:
    No categories

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.