• I just installed WordPress onto my server and it’s working fine. However, now I need to how to itegrate the blogs into my site’s content. If you could just point me in the right direction, that would be very helpful.

    I plan to use several diferent categories. Each category has an entirely different theme and I want different content on the web pages that host the blogs. On my homepage, I want to display only blogs in the ‘web site updates’ category. Then on my videogames web page, I want to display only posts in the videogame category. On the fitness web page, display only posts in the fitness category, ETC. Right now, I have my blog set up in it’s own directory and I’ve set up the categories. But how can I “pull in” a category’s posts to a web page? Either that or design different content for each category in my blog? I hope I’m explaining this right. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • 1. You can take a look at the Category_Templates to find out how to design different layout for different categories.
    2. If those webpages in the other areas of your site are .php files, you can easily use any WP tag and function on them, after making them “WP aware”. Meaning put this at the top before anything:
    <?php
    require('./path-to-your-blog/wp-blog-header.php');
    ?>

    Having that done, you can use The_Loop or query_posts to display posts from certain categories.
    Post back if you need more help.

    So it’s possible to have a completely different look for each category? Is it possible to have an index/home page that not only provides links to individual categories, but also shows title and date of the latest post from each category? For an example of what I’m trying to do, have a look at work in progress – on the right, I have cat1 for site news and cat2 for links to news stories. These two categories are in the one install of WP. Then on the left, I have a list of other parts of the site that really could be just further categories, but at this stage, they are each a separate WP install.

    @marko,
    1. It is possible to have different look for each category. Visit the link I’ve posted above.
    2. You can have a home.php template that shows post grouped by category. See this thread: http://wordpress.org/support/topic/38046
    3. For a “sidebar” you can also use the query_posts linked above to show excerpts from certain categories.

    Oops, sorry, I think I’ve just worked it out – gee, I love the Codex – and, of course, WordPress itself – the possibilities just seem to be endless.

    cool, thanks moshu. Greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘pulling blog posts into web pages by category’ is closed to new replies.