• I finally managed to exclude the podcast category from the main page, and I want to be able to load them up on my podcast page. I did find a plugin called ‘inline posts’ that can be used to show posts on a page by using this format id of post. This will become very tedious. Is there any kind of code that I can add that will automatically load the entries in the podcast category to my podcast page which is below.

    http://www.atriskstoriesofhope.com/wordpress/?page_id=23

Viewing 2 replies - 1 through 2 (of 2 total)
  • read this page

    http://codex.ww.wp.xz.cn/User:JamesVL/query_posts

    you might want to turn on permalinks also (in Settings / Dashboard) so your URL’s look like
    http://www.atriskstoriesofhope.com/wordpress/podcasts

    You would want to add some code like this in page.php before “the loop”
    Enter the category code for your podcast category where the example below says cat=3

    <?php
       if (is_page(23) ) {
          query_posts("cat=3");
       }
    ?>

    now “the loop” starts
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    This tells the code to only display posts from category 3 on this page, when the page id is 23

    Thread Starter antoniop

    (@antoniop)

    Wow, thank you so freaking much. This little bit of code was all that I needed. When you go to http://www.atriskstoriesofhope.com/wordpress/talk-story-podcast you can see the two posts that I have in the podcast category (category 3). The only problem is that it does not have the same fomatting as the normal blog posts, ie, not clickable links, no comments, etc. Any idea on the code that I need to add to get these back?

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

The topic ‘Adding posts to a category’ is closed to new replies.