Support » Fixing WordPress » Post by Post Archives Problem

  • Resolved Keilya


    Hello there!

    I recently found out about the Post by Post archive tag and must say it’s something really good. It allows me to display a list of recent posts with their titles.

    <?php wp_get_archives(‘type=postbypost&limit=20&format=custom’); ?>

    Found here:

    The thing is, I’m having some formatting problems. Here’s my site: Look under the sidebar titled “Recent”.

    The Post titles are continous, meaning that there’s no <br> after each one and it makes the whole thing look messy. Is there a way to perhaps bullet them like the monthly archives tag or insert <br> between them?

    Your help would be most appreciated! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Keilya


    Anyone? It’s really a nifty tag, it just needs some formatting corrections. 🙁 I mean if it’s gonna look messy, its original purpose is defeated anyway right? Could it be anything to do with my css(which I doubt)?



    Ahh it’s ok, I did some manual searching(the one on top didn’t work for some reason, thus I posted this the other day.) in the archives hot tag forum and came across this:

    Codes fairly simple to understand if put this way:

    For Breaks:
    <?php wp_get_archives(‘type=postbypost&limit=5&format=custom&before=&after=<b r>’); ?>

    For Bullets:
    <?php wp_get_archives(‘type=postbypost&limit=5&format=custom&before=<l i>&after=</l i>’); ?>

    Just thought I’d post and help anyone out. =) Just remember to remove the spaces between the <b r> and <l i> because this board kinda…I don;t know uses them and they get eradicated frm the original post.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post by Post Archives Problem’ is closed to new replies.