• Resolved danmerk

    (@danmerk)


    Can someone explain to me why I am having so much trouble doing something as simple as creating a multiple category blogging system using WordPress. I am trying to steer away from the Moveable Type way of thinking so that is hard for me to begin with. Also I am comfortable with editing PHP.

    I want to make use of WordPress to create a home page with a main blog entry on that page. Only one post is showing on that page from category 01. Also on that page is a section with icons for each of the other 4 categories, their titles, and excerpts from those recent posts.

    Also on that page is a date based archive calendar for the main category 01, a few out of the_Loop custom fields that are specific to the main category 01.

    When a user clicks on the title, they are taken to the actual post page with comments and a stripped down archive lsit. This page is single.php.

    What I want to happen from the home links is that the user would be taken to a category page with recent posts. Almost like another site, but just the category.

    The problem I am having is that there are little options created for the user (me) to utilize categories as actual web site sections. I.e. Cat 01=main, Cat 02=photography, etc. But this is not working that way. Whenever I post to my blog and select a category, it makes no difference as when a user goes deep within a site they can see prev + next links taking them to every post. It is almost as if every post is only separated by date and not a specific category.

    I would love to see implementation of category arguments within the_loop. Such as passing arguments from URI to URI where there are limitations on which category posts are to be displayed. If this is not possible, then what are categories used for? Because categories are placed in the same hierarchy as all posts. Why?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Okay, categories happens automatically. If you have a link to a category, then the list of posts within that category appear.

    To create customized category pages, see Category Templates. To list specific categories under the post title, or in the Post Meta Data Section then add the template tag for the categories. See https://codex.www.ads-software.com/Template_Tags/the_category.

    You can list categories on your page’s navigation anywhere you want, like in the header, sidebar, etc. See https://codex.www.ads-software.com/Template_Tags/wp_list_cats.

    My entire site is driven by categories not archives or dates. I hate the chronological feature and don’t use it at all. Click on my name and you can see how I use categories. If you want to know more, just ask.

    You can use this plugin, so that your previous/next post links stay in the same category, instead of going chrono:
    https://www.scriptygoddess.com/archives/2004/07/24/nextprevious-posts-in-same-category/

    Most of the next and previous link functions accept an “in same category” parameter:

    For example:
    get_previous_post(true);
    Would return the next post in the current category.

    And
    previous_post_link('« %link', '%title', true);
    would display a link to the previous post in the same category.

    Thread Starter danmerk

    (@danmerk)

    Awesome all! Thanks!

    So in conclusion, I can create a site that is category driven. The home page is a dashboard where a person can see the latest post from the main category (01), then in the navigation I can link to each category and those pages are seperate category looking pages. I can also have a calendar on the site to link to date specific for archival purposes, also I can have small excerpts be included within the navigation so a person can see if a seciton has been updated based on what I write in the excerpt. Cool!

    Only problem I am experiencing is that I have to use mucho plugins to make the home page respond in the way I want it. There are some concerns with the fact that I can not get comments to display inline on an “Archive” or “category-02.php” page like I can on the “single.php” page. Why is this? Thanks a ton!

    Oh my site is here temp so you can see what I am trying to do:

    https://www.danmerk.com/wordpress

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress Theory’ is closed to new replies.