• Hi Guys

    I have a site which I post content articles to. What I want to do is have a separate page which contains my own personal blog (as the site owner). I thought I could do this with category templates? Is that right? My guess is that I need to create a template for the new blog posts category and a template for the main page that shows all categories, except the blog posts.

    The thing is, I just don’t know where to start. I read the codex page on this like a dozen times and I can’t make sense of it. Which file do I need to edit and what code needs to be changed?

    Any help most appreciated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Create a cat for yr stuff in admin. Note the cat number. Then create a template called category-n.php where n is yr cat number.

    Thread Starter WiZeR

    (@wizer)

    Ok thanks very much for getting back to me. I assume that I copy the category.php file to do this?

    What do I need to change in category-n.php to make it only show 1 category? and similarly what needs to be modified in category.php to make it leave out the blog category?

    yr right
    copy category php as yr base
    category-n.php will only load that cat automagically

    not sure what u mean – the blog is not a category ?
    do u understand the differences between posts and ‘pages’ ?

    i am beginning to think u are heading done the wrong route
    tell us more exactly what u want to do

    Thread Starter WiZeR

    (@wizer)

    yeh, sorry I do know the difference. What I mean is. I want to setup what looks like a separate blog. So I will setup a category called TBlog. The main page of the site is used for news articles, video posts, etc. TBlog will be my own personal blog posts which won’t necessarily connect with the main page. So I thought I could split out the Tblog category to it’s own ‘page’. But to do it this way, I would need to stop the Tblog category from showing on the main page.

    Does that make sense?

    Well in that case edit the loop to exclude yr Tblog cat

    Thread Starter WiZeR

    (@wizer)

    I guess you was expecting this question, but:

    What’s the loop and what exactly needs changing?

    The loop is the core function in wp which calls all posts/pages as required from mysql…….it is in itself highly configureable……..i dont meant to fob u off but at yr level of customisation u need to get into the Codex and see how functions work………..excluding a cat is childs play…….but u will benefit learning how to do it

    Thread Starter WiZeR

    (@wizer)

    Cheers. I spent days on the codex pages and I still don’t get it. Oh well, will just forget the idea.

    Would u agree to mark this as resolved (unsolveable) ?

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Category Templates’ is closed to new replies.