WordPress categories question

7 replies
  • WEB DESIGN
  • |
I am moving a site from HTML to WordPress and the previous site has many, many posts that need to be categorized. The old site simply listed these posts alphabetically, but I would like to have a page of categories that lists the name of the posts beneath the category title, rather than a long alphabetized list of posts all uncategorized as before. This 'Categories' page needs to work like an index.

I can't find a plugin to do this, and I need it to work on a page, not justin a widget. I also don't want it to be like the archives and list every user, categories by month and that sort of thing.

Any help is appreciated. Thanks
#categories #question #wordpress
  • Profile picture of the author viescripts
    Originally Posted by Intermission View Post

    I am moving a site from HTML to WordPress and the previous site has many, many posts that need to be categorized. The old site simply listed these posts alphabetically, but I would like to have a page of categories that lists the name of the posts beneath the category title, rather than a long alphabetized list of posts all uncategorized as before. This 'Categories' page needs to work like an index.

    I can't find a plugin to do this, and I need it to work on a page, not justin a widget. I also don't want it to be like the archives and list every user, categories by month and that sort of thing.

    Any help is appreciated. Thanks
    so you want all your categories to appear on a stand alone blog page? not just in the right/left columns?
    This requires a little programming, but better to look for directories with WP plugins. There are plenty of these online.


    Run a search of "wp plugins classifieds" or "wp plugins directories".

    WP menu is very configuranle, you can remove from it all stuff you wouldn't like to show in your blog interface.
    {{ DiscussionBoard.errors[7189218].message }}
    • Profile picture of the author Intermission
      Originally Posted by viescripts View Post

      so you want all your categories to appear on a stand alone blog page? not just in the right/left columns?
      This requires a little programming, but better to look for directories with WP plugins. There are plenty of these online.


      Run a search of "wp plugins classifieds" or "wp plugins directories".

      WP menu is very configuranle, you can remove from it all stuff you wouldn't like to show in your blog interface.
      Thanks for these suggestions. I'll give them a try.
      {{ DiscussionBoard.errors[7207443].message }}
  • Profile picture of the author SteveJohnson
    Originally Posted by Intermission View Post

    ...I would like to have a page of categories that lists the name of the posts beneath the category title, rather than a long alphabetized list of posts all uncategorized as before. This 'Categories' page needs to work like an index.
    ...
    Any help is appreciated. Thanks
    As usual, the forum is screwing up php code. I created a function for you, but you will have to snag the code from pastebin: [PHP] Posts by categories - Pastebin.com

    Hopefully, you know how to modify your theme's functions.php file. If not, let me know and I'll put this in plugin form for you.

    The code creates a WordPress 'shortcode' that you can insert into any post or page. Put the code from pastebin into your functions.php file. Then, create a new page and in the content editor, type in the shortcode:
    Code:
    [listposts]
    Send me a pm if you have any questions, I don't check these threads regularly.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[7190906].message }}
    • Profile picture of the author Intermission
      Originally Posted by SteveJohnson View Post

      As usual, the forum is screwing up php code. I created a function for you, but you will have to snag the code from pastebin: [PHP] Posts by categories - Pastebin.com

      Hopefully, you know how to modify your theme's functions.php file. If not, let me know and I'll put this in plugin form for you.

      The code creates a WordPress 'shortcode' that you can insert into any post or page. Put the code from pastebin into your functions.php file. Then, create a new page and in the content editor, type in the shortcode:
      Code:
      [listposts]
      Send me a pm if you have any questions, I don't check these threads regularly.
      So, I copy the pastebin code, place it in the functions.php file and then use the shortcode wherever I want? Let's see ... nope, something messed up my functions.php and I got an error. Sending you a PM.

      Thanks!
      {{ DiscussionBoard.errors[7207426].message }}
  • Profile picture of the author SteveJohnson
    I think you may have copy/pasted the opening and closing <?php ?> tags from the pastebin file. I modified the file to show where to copy/paste from/to.

    I also made a plugin for this, you can grab it at http://ilikewp.com/ilwp-listposts.zip.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[7209608].message }}
  • Profile picture of the author Intermission
    Wow! Steve, I love the plugin. It works just like I wanted it to. Now am wondering how I might style it just a little. I'd like to make it 2 columns and enlarge the titles just a bit, so they stand out more from the body text.

    Thanks so much for this!
    {{ DiscussionBoard.errors[7210045].message }}

Trending Topics