Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dren68

    (@dren68)

    Hey, thanks for the info. I think I may have found the solution from the Codex. I used

    <h1><?php echo get_the_category_by_ID($cat); ?></h1>

    for the main category page and then

    <?php
    foreach(get_the_category() as $category) {
    echo $category->cat_name . ‘ ‘;
    }
    ?>

    for single.php and it seems to be working. I guess I should have looked a little longer before posting here. Oh well…

    Oh, I think I understand. So, all I have to do is create two separate categories and point the corresponding url to each one? And, if so, how do I figure out the url? Thanks!

    Hi,

    Thanks for the link. I guess my next question would be how do I set it up so that the posts under the ‘blog’ category show up only on the ‘blog’ page, and the posts under the ‘news’ category only show up on the ‘news’ page? And then how do I set them up to archive separately? I’m still a little confused about the whole hierarchy concept, I guess. Do I still need an index.php file, or can I just have a category-1.php and category-2.php files – or can I name them category-news.php and category-blog.php? Sorry for all the questions, but I’m very new and still trying to figure out a lot of stuff.

    Hi,

    I’m trying to do something similar and was wondering the same thing. I’m designing a website for someone who wants a ‘news’ page and a separate ‘blog’ page that he can update himself. I’m using a site with an i-frame and I just need a simple format that shows the post, date, etc. without the sidebar. So far I’ve been able to set up a ‘news’ page that works, but now I’m wondering how to add another similar page to the same site. If anyone knows how to do this, it would be greatly appreciated. Thanks!

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