Support » Fixing WordPress » Category-less Posts

  • Is it possible to create posts that don’t live in a defined category? I’d like to have some static posts on my site that are accessible only by direct links from the menu, but I don’t want to have them in the same category because I don’t want them displayed on the same page. Nor do I want to have to create categories for each one.
    I’ve seen the hacks for static pages, but if I’m not mistaken, they’re still associated with visible categories, correct? (I know practically nothing about PHP…)

Viewing 9 replies - 1 through 9 (of 9 total)
  • At the moment, there isn’t a way. WP will attempt to put it into the default category when one isn’t specified – I’ve tried. BUT, I am working on a plugin that will do what you want. I’m still in the process of putting it all together and I have a few minor issues to work out before it’s really ready. I hope to have it done and ready for beta-1 by the weekend if interested.

    That’s awesome, TG. I’ll look for more news from you on that.

    Hey, TechGnome. Any progress on this plugin yet?

    > I’ve seen the hacks for static pages, but if I’m not mistaken, they’re still associated with visible categories, correct?
    No. That’s the benefit of static pages; they don’t need to be assigned to a category. You can copy the template, cut out everything you don’t want, write whatever you want into it, upload it and then link to it from your main menu.
    In the dtmenu at the top, the About, Contact and Privacy, etc. pages were created as above, but are not assigned to a category (and don’t need to be).

    OK, so basically you just created plain vanilla HTML pages and made them look consistent with posts, then added links from the menu? Or are you saying that your static pages are actually posts with some kind of plugin or hack that de-associate them with a category?
    Just clarifying here.

    OK, so basically you just created plain vanilla HTML pages…

    Actually I’ve created “vanilla” php pages 🙂
    What I did: took the index.php from WP, deleted The Loop and everything else from the menu that I considered not necessary for my static pages and I put my text in the content and/or post div. For now (=work in progress) these pages can be accessed from the top navigation menu.

    Nomad – sorry ….. yes, there’s been LOTS of progress…. I’m having an issue on the post save routine that I can’t seem to work out. If you want, visit my site, hit the EMail me link and drop me a note if you want to try out this beta-version.
    Just to show what I can do with this plugin I’m working with …. all of the links on my site under the This & That menu section ARE ALL PAGES USING THIS METHOD!! Plus the RunPHP plugin too (so the recent comments bit works). But every single one of them is a “static” post from within WP. Other than the plugins themselves, there’s no outside pages.

    What moshu said.
    First, the dtmenu links are all to non-post pages except for the “Home” link; these are not “static” pages because they’re still .php … because I wanted to use the menu and bottom of the page stuff which comes out of the database.
    Next, I copied index.php, cut out all the PHP stuff in the middle related to posts (The Loop), wrote what I wanted, and uploaded it.
    Then I created links in the Control Panel to those pages and assigned to dtmenu.
    Luckily, you can experiment with non-post pages, upload them and view them in your browser before linking to them.

    some of the reasons some of us have been experimenting wiht “static” pages within WP:
    1) A unified look & feel. I’ve done what you mentioned Diane, and it became a pill to manage when I started switching to a new layout. Having it all controled by WP from within the index.php makes this a litle easier.
    2) Searching the site. Some people wanted site searches to inclue their “static” pages as well as the regular posts.
    3) …… uh…. Iswear I had a third one…. but I forget now.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Category-less Posts’ is closed to new replies.