Forums

Hiding the category association ? (7 posts)

  1. Ollywood
    Member
    Posted 1 year ago #

    Hi all,

    since yesterday I hae been researching in to all I need to know to get a nice looking blog up and running. 1 thing i noticed was that i just couldn't get the "published under 'uncategorized'" to disappear.

    At the moment i have no need for categories and consider it a little ugly looking to have a single category with all posts in it, also if i rename that category. It doesn't really look nice either.

    I don't mind associateing posts with categories though, I just don't want to have it say next to the author's name into which category it has been published and i don't want it to appear in the sidebar although I managed to get rid of thatlatter bit so far.

    Basically I am looking for something cosmetic that can easily be undone at any point int eh future when perhaps enough posts have been written to take advantage of categories.

    I hope someone undertands me. some help would really be appreciate. thanks!

  2. jeffr0
    Member
    Posted 1 year ago #

    Don't quote me on this, but I believe posts in WordPress must be assigned to at least one category. However, if you post the code related to your WordPress loop within the theme you are using, we could help you out by taking out the category publishing aspect of the loop.

  3. Ollywood
    Member
    Posted 1 year ago #

    I don't mind having the existence of categories in general. In fact I already thought that might have to be.

    I would be perfectly happy with a cosmetic fix to just make the

    "published under ....." disappear.

    However, if you post the code related to your WordPress loop within the theme you are using

    Where do I find exactly what you need ? I suppose you mean using the theme editor to edit the code of one of the *.php files?

  4. Ollywood
    Member
    Posted 1 year ago #

    hehe - I just figured it out myself. Using the theme editor I simply modified index.php and single.php

    and changed the lines:

    Published by <?php the_author_posts_link() ?> at <?php the_time();?> under <?php the_category(',') ?>

    removing the

    under <?php the_category(',') ?>
    cosmetically fixed the issue I had. Using widgets I can hide the category in the sidebar without changing the code and removing these lines in index.php makes sure that the under category blahblahblah is no displayed. If you also do this with the single.php it does so when looking at posts accessed individually, through searches for instance.

    The actual existance of categories is not affected though. if all posts are posted in uncategorized, it doesn't make any difference but at least it doesn't look so unprofessional anymore with this little surgery.

    In instances such as mine, the use of categories invisbly behind the scenes is useful to the point that as soon as the blog has been around long enough and enough posts have been made in a wide enough range of category, it may make sense to restore the removed lines of code and change the category widget to display categories on the sidebar.

    took me a couple of days to figure out how to do this all as I had to learn how to understand enough php in order to orientate myself through all the lines of code and I didn't find any infos on this issue anywhere on the web despite having seen plenty of blogs without the "published under caetgory xxx" phrase.

  5. haochi
    Member
    Posted 1 year ago #

    Well, you can rename the category to something like, "General". I actually kinda regret now not using categories when I first started my blog and don't feel like manually editing the categories for 1000's of posts. :(

  6. Ollywood
    Member
    Posted 1 year ago #

    I will be using teh categories invisbly, meaning that when I post will asociate a category. I just don't want the categories visible until there actually are plenty of categories ie posts inside each of them.

    It looks kind of unprofessional to just have a single category or a couple of categories and in each just a couple of posts. Makes the site look empty. I'm not planning to post 10 posts a day so getting the numbers up will take a lot of time. Until then, if you want to avoid feeling like a small site, keeping away from visible categories is a decent idea and the method I describerd above will help you acchieve this until a better solution is found :)

  7. jeffr0
    Member
    Posted 1 year ago #

    Glad to see your issue was resolved. Can you please change this forum topic from Not Resolved to Resolved? Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.