Forums

Category list in li tags.... (5 posts)

  1. Anonymous
    Unregistered
    Posted 7 years ago #

    Hi,
    Site: http://www.os42.com
    Can anyone help me out with this small problem? At the end of each post I have a list of 5 posts within the same category.
    Unfortunately, these are in a list [with bullets no less] and I would prefer to have them on one line perhaps with a comma separating.
    I currently use :
    <?php echo list_posts_of_cat(get_the_category(), 5, 5); ?>
    If anyone knows what I need to change - it would be nice to hear from you. Thank you :)

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

    This will do it Shadow:
    .storycontent li {
    display:inline;
    }
    But.... it gives no separator character and, should you use a unordered list in a post, that too will also display inline. So for post lists, use

    1. shadow
      Moderator
      Posted 7 years ago #

      Thanks Podz....that seems to work.
      I thought there might be something that could be added within that tag to turn off the list but your option works too.
      Thanks for your help :)

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

      Actually.....
      I missed that the styling should be .storycontent ul li
      It would be possible to have a list style image too ..

    3. Kelso
      Member
      Posted 7 years ago #

    Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.