WordPress.org

Ready to get started?Download WordPress

Forums

Archive Question (6 posts)

  1. southerngal
    Member
    Posted 10 years ago #

    I'm doing NaNoWriMo and I want to have my archives on the sidebar post by post. I have that part figured out, but, where do I put the
    and in what template, to have one post link on each line instead of them running together? I tried to adjust the width of the sidebar, but it's still doing it.
    Also, is there a way to reverse the way the posts show up? I would like to put the chapter one excerpt at the top. Is there a way to do this besides changing the date on each post?
    Thanks in advance!

  2. southerngal
    Member
    Posted 10 years ago #

    No one?

  3. southerngal
    Member
    Posted 10 years ago #

    I have the following in my b2templatefunctions:
    /* link navigation hack by Orien http://icecode.com/ */
    function get_archives_link($url, $text, $format = "html", $before = "", $after = "") {
    if ('link' == $format) {
    return "\t".'<link rel="archives" title="'.$text.'" href="'.$url.'" />'."\n";
    } else if ('option' == $format) {
    return '<option value="'.$url.'">'.$text.'</option>'."\n";
    } else if ('html' == $format) {
    return "\t".''.$text.''."\n";
    } else { // custom
    return "\t".$before.''.$text.''.$after."\n";
    }
    }
    It was really hard to follow your post. I appreciate it though. I flipped the archives last night, I meant the actual posts as they appear on the page and I still can't figure out where to put the
    to have the archives listed one by one. Can I use the dropdown archive hack I wonder....

  4. Laughinglizard
    Member
    Posted 10 years ago #

    I broke it all! I cant read anything! You could email me, would be better than pulling out our hair here... :-)

  5. southerngal
    Member
    Posted 10 years ago #

    I found it!
    /* link navigation hack by Orien http://icecode.com/ */
    function get_archives_link($url, $text, $format = "html", $before = "", $after = "") {
    if ('link' == $format) {
    return "\t".'<link rel="archives" title="'.$text.'" href="'.$url.'" />'."\n";
    } else if ('option' == $format) {
    return '<option value="'.$url.'">'.$text.'</option>'."\n";
    } else if ('html' == $format) {
    return "\t".''.$text.'
    '."\n";
    } else { // custom
    return "\t".$before.''.$text.''.$after."\n";
    }
    }

  6. Laughinglizard
    Member
    Posted 10 years ago #

    heh! Cool...and thanks admin for fixing my post! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.