WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] New Default Opening Page and Comments on Catagory?

[Resolved] New Default Opening Page and Comments on Catagory?

  • Hello,

    Boy, am I learning a lot… LOL…

    Okay, the following two questions should be easy to do, again however, the answers elude me..

    Please go to my website.. http://www.gatosblog.com

    The first thing I want to do is make the catagory “Featured Listings” (Page)… be the first page anyone sees when they open up the site.. If not that, then how about “Kathy’s Listings” (Catagories)…

    The second thing I am trying to fgure out is … Can I make a catagory with the posts from newest to oldest and put those in a catagory? I think that may be possible if I flag every post with an additional catagory, supposing I call it “Posts”…

    Thanks in Advance.. I’m really beginning to like this.. LOL

    Jim

Viewing 4 replies - 1 through 4 (of 4 total)
  • So you want your main index page to show only posts from one category? Try this:
    http://codex.wordpress.org/Template_Tags/query_posts#Exclude_A_Category_From_Your_Home_Page

    On my index.php, the beginning of my Loop is this:
    <?php if (have_posts()) : query_posts($query_string .'&cat=-2'); while (have_posts()) : the_post();

    That keeps category 2 off my home page. If that were &cat=2 (take out the minus sign), then it will only show entries from category 2. So if you replace your Loop on the Main Index Template, then you can have the home page only show certain categories.

    Another way about this would be to use .htaccess. Here’s some info:
    http://www.javascriptkit.com/howto/htaccess6.shtml

    So, in the root directory of your blog, if you make your .htaccess file read, in addition to whatever else is there, DirectoryIndex ?page_id=169, I wonder if that would work. Or, if not that, create a page that’s just a redirect to http://gatosblog.com/?page_id=169 and use that page as the DirectoryIndex page.

    About your second thing, posts normally show from newest to oldest so I don’t get what you want to do differently. Right now, when you click on a category name you go to a page with entries listed from newest to oldest.

    Thanks …

    As in “Cool! I got it working!” or “Thanks for showing me more stuff I don’t understand”? If this is resolved, mark it “Resolved.” If it isn’t, ask more questions.

    Forgive me. I had no idea.. I will mark as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] New Default Opening Page and Comments on Catagory?’ is closed to new replies.
Skip to toolbar