WordPress.org

Forums

How does get-archives works? (5 posts)

  1. rasmuscarlsen
    Member
    Posted 10 years ago #

    How does get-archives works?

    this: get_archives('postbypost', '5', 'custom', '', '
    ');

    gives med the few new post in my blog listet where I pu the code.

    How do I tell the WP only to show new post from a specific category?

    rasmus

  2. moshu
    Member
    Posted 10 years ago #

    That template tag does NOT have a category parameter. See > Template_Tags/get_archives#Parameters.

  3. rasmuscarlsen
    Member
    Posted 10 years ago #

    what do I do then?

    i have been crawling my way through 4 months of support-post and I cant find out how to do it.

    Is the only way a plugin?

    I just need one box in the sidebar showing new post from one category and another box showing new post form another category ..

    ras

  4. moshu
    Member
    Posted 10 years ago #

    Plugins or a mini-loop - but I think the plugin solution is easier.

  5. rasmuscarlsen
    Member
    Posted 10 years ago #

    ok thx - I give et a try (the loop seems out of my brain;-))

    ras

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags