Forums

[resolved] Want to show all posts in category in a page (6 posts)

  1. axgillette
    Member
    Posted 2 years ago #

    Does anyone know how i can show all articles in a a category on a page?
    I want all the items in a category to show up in a page. I tried to do it myself, but i cannot figure out how to do this.

    If anyone has any info on this i would greatly appreciate it.

  2. sanjaymenon
    Member
    Posted 2 years ago #

    make a new page template with the below code :

    if (is_page('page_id') ) {
    $cat = array('category_id');
    } else {
    $cat = '';
    }
  3. axgillette
    Member
    Posted 2 years ago #

    Hmm, not to sound noob or anything, but i looked in WP admin panel and cannot find a place to create a new page template.

    Did you mean to create a page template with an editor, then upload it to wordpress? But how would i call this into WP to show up as a page?

    I understand the code you shared with me. Just need a bit more explanation please.

  4. sanjaymenon
    Member
    Posted 2 years ago #

  5. thefox913
    Member
    Posted 2 years ago #

    hahaha

  6. axgillette
    Member
    Posted 2 years ago #

    thanks, the codex page provided a link to a great plugin. It sure helped. Thank you again.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.