Grow your CSS skills. Land your dream job.

Put Categories Archive in List Form?

  • # February 21, 2011 at 7:45 pm

    I need to somehow segregate the post titles from this string.

    They are currently appearing like this:

    Nancy Park BiographyAlexis
    Arvidson Biography

    http://www.parkarvidsonacupuncture.com/wordpress/nancy7/

    This is the PHP string I’m using currently.

    < ?php wp_get_archives('category_name=Nancy&type=postbypost&limit=20&format=custom'); ?>

    Thanks!
    Adam

    # February 22, 2011 at 12:08 am

    Nevermind, figured it out. For anyone else that needs this code:

    < ?php
    global $post;
    $myposts = get_posts(‘numberposts=10&category=NAME_HERE&order=DESC’);
    foreach($myposts as $post) :
    ?>

  • “>< ?php the_title(); ?>
  • < ?php endforeach; ?>

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".