• I hope you can point me in the right direction to do what I want to do here.

    I’d like to list the latest posts in a category (call it “The Bands”), on a page (also called “The Bands”), below the slider (whose calls to action each correspond with the band’s post,) and other text on this page, including an index of the bands (which also goes to the individual band’s post.)

    Can I address this somewhere in the loop on the class-content-post-list.php file? Or will I need to make a category template? I’m unsure where to begin to accomplish this.

    Also, I’d like to exclude “The Bands” from the regular “News” post list.

    Thanks in advance for any attention you give to my query.
    Mitch

    P.S. I can link to the page in question if it will help, (privately)

Viewing 2 replies - 1 through 2 (of 2 total)
  • To exclude bands from the news post list you need to add this to the query:
    cat=-3

    You need to work out what id your “the bands” category has which can be seen in the url in Post > categories > The bands and replace teh three with the id in the url.

    To create a category page for just the bands if you have a category.php file duplicate it and call it category-ID.php where ID is the number gained in the previous step.
    http://codex.wordpress.org/Category_Templates

    Thread Starter mitchpowell

    (@mitchpowell)

    Thank you Peter, I know the ID for bands is 93. The Customizr theme uses a system I can’t quite figure out yet. There are only header, footer, sidebar, and one or two other php files (pages) in the theme directory; a folder called “parts” holds most of the page templates, but there’s no category.php in the theme folder or anything like it in the parts folder. I’ve been studying the codex page you refer to, and have yet to figure out how Customizr works. (I’m not that up on hooks, actions, and filters.)

    I attempted to use a page provided in the theme folder, “custom-page.php” and make a copy to rename it and place into the child theme folder. I looked for the code in that page that would help me do what I want, but couldn’t quite follow it. 🙁

    Thank you for your quick reply,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Making a Post List on a Static Page’ is closed to new replies.