• Without setting a static page, how can I set my homepage to only display the latest posts in categories I specify? I want to post articles related to a topic my blog does not normally count (related to Music instead of Technology) but I do not want these articles displayed to a majority of my visitors, unless they found it on a search engine or a linkback.

    In other news: Just got my test scores back, I received a 55/60, stupid machine counted it wrong. I had 57/60!

Viewing 1 replies (of 1 total)
  • make backup copy before editing theme files

    you could try and put a conditional query into index.php; just before the start of the loop. something like this:

    <?php if( is_home() ) :
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('cat=1,5,9,23&paged=' . $paged);
    endif; ?>
    
    <?php if(have_posts()): while (have_posts()) : the_post();
    // etc.
    ?>

    https://codex.www.ads-software.com/Template_Tags/query_posts

Viewing 1 replies (of 1 total)
  • The topic ‘Choose which catagories are displayed on the homepage’ is closed to new replies.