Forums

custom sidebar help (2 posts)

  1. talie2
    Member
    Posted 5 years ago #

    I'm new to customising wordpress

    I want to use it as primarily a static site but with a news page.

    I have created a news category for posts that will be posted to the "news" page. On my sidebar, I would like to have a link to each of the posts (linked by post name) in the news category and if possible, for the first link only, the first part (up to the "more" code) of the post.

    What I have in mind is something like this if it makes it easier to understand what I'm getting at.

    http://www.talhost.net/blog.gif

  2. fel64
    Member
    Posted 5 years ago #

    Use get_posts() for that.
    http://codex.wordpress.org/Template_Tags/get_posts
    If you follow the example but don't want the excerpt for each post, just take that function out.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags