WordPress.org

Ready to get started?Download WordPress

Forums

Calling category archive from pages (2 posts)

  1. zerolegel
    Member
    Posted 8 years ago #

    Hi!

    I was wondering if there's a way to call for posts of a certain category while building a page. I tought I would copy/paste some php code into it, but it doesn't seems to work ; the truth is that I don't really know anything about php, I just follow my intuition while building the site.

    To see the concrete case, I'd like to call everything in the category "radio" in this page after the image : http://www.cabaretdiaspora.com/wp/?page_id=2

    Sorry if this was ask and answered before, I feel that this was the case, but I made lot of reading through the forum and the codex and I still not know what to do.

    Thanks You!

  2. moshu
    Member
    Posted 8 years ago #

    Forget the Pages. They are not meant to do what you want.
    For displaying posts in a category you have several options:
    See http://codex.wordpress.org/Template_Hierarchy:
    category-X.php
    category.php
    archive.php
    index.php
    Use custom display of posts in a category use Category Templates:
    http://codex.wordpress.org/Category_Templates

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags