Forums

>Categories Don't Wan't to Categorize My Posts!!! (34 posts)

  1. Riaz Farooq
    Member
    Posted 4 months ago #

    Hi there,

    I have several categories set up in the dashboard with 10 or so posts. I have then assigned these posts to the categories I want, however, when I select a category on my site, it just displays the posts in the order they were posted, instead.

    For a while I assumed this might have something to do with wp-paginate, as I'm having problems with this also... but, maybe not, as when this is deactivated I still have the same issue.

    This is killing me, please, I need someone smarter than I :)

  2. deepbevel
    Member
    Posted 4 months ago #

    however, when I select a category on my site, it just displays the posts in the order they were posted, instead.

    instead of what? how do you want your categories to display? it sounds like your posts are in the categories you assigned..? no?

  3. Riaz Farooq
    Member
    Posted 4 months ago #

    Sorry, Deepbevel.

    ...Instead of only displaying the posts that are under that category.

    So for example: I have 10 posts altogether and 3 of those are categorised under "Print Design", but when I select Print Design, I still have all 10 posts appearing. I only want the 3 under that category.

  4. deepbevel
    Member
    Posted 4 months ago #

    most likely you inadvertently have more than one category for each post checked in the post editor. If not that it could be a recent plugin, plugin update, theme switch or theme update.

  5. Riaz Farooq
    Member
    Posted 4 months ago #

    Thanks for your help Deepbevel. I've checked my posts in the post editor and that's all okay. I guess I can also rule out issues due to any plugins, as I still have the issue with everything deactivated. I'm pretty sure, like you said, that there's a potential issue with the theme itself. I've tried on several occasions to get help from the company I purchased it from, but they're not replying!

    If I postsed the code from my category.php, do you think someone could spot what might be wrong?

    Any other suggestions would be much appreciated!

  6. deepbevel
    Member
    Posted 4 months ago #

    Yes, it could help if you show the code, however if it's a whole page template please use pastebin

    But first, just to narrow down the issue to your theme, try activating another theme, you probably already have twentyeleven or twentyten as the default that came with wp. If not, get one of those as they are updated and good for testing.

  7. Riaz Farooq
    Member
    Posted 4 months ago #

    Yes your right, I've checked using twentyeleven and twentyten and it's defiantly an issue with my theme.

    categroy.php code can be found using the below url:

    http://pastebin.com/8GVByxnD

    Any takers? :)

  8. deepbevel
    Member
    Posted 4 months ago #

    Looks like Greek to me.

    This is the hierarchy wordpress uses when looking for a category template:
    1. category-6.php
    2. category.php
    3. archive.php
    4. index.php

    how is your file category file named?
    I'm also confused because, I dont't see a name for the template, I thought that was required for it to work..?

  9. deepbevel
    Member
    Posted 4 months ago #

    template names ussually look like this:

    <?php
    /*
    Template Name: Categories
    */
    ?>

    at the very top of the page, just above get_header.

  10. Riaz Farooq
    Member
    Posted 4 months ago #

    It's (category.php)

    Not sure about the 'template name' section of code, there is something similar in my style sheet so I might play around with this (just in case).

    Crudely, I've just switched the (category.php) code from the Twenty-ten theme into mine and although it doesn't look how I want it, my categories are now working..

  11. Riaz Farooq
    Member
    Posted 4 months ago #

    I'm hoping if I can figure out what piece of code needs taking out and putting in, maybe this might just work???

  12. deepbevel
    Member
    Posted 4 months ago #

    okay, at least it appears to be narrowed down. It will help the theme author solve it more quickly when they get back to you.

    In the mean time, you might have succsss rebuilding the template off of the twenty ten category code. But it could get ugly... at some point you'll bump into whatever it is that is calling posts without category sorting.
    And of course, make sure you save copies of the original twentyten category template as well as your original.

  13. deepbevel
    Member
    Posted 4 months ago #

    there's lot's to reference, you might start with:
    codex.wordpress.org/Pages

  14. Riaz Farooq
    Member
    Posted 4 months ago #

    Cheers buddy! I'll see what happens :)

  15. deepbevel
    Member
    Posted 4 months ago #

    You may already realize that if you are using category.php template from twentyten, it's getting it's loop from your theme's main loop.

    this is what you'll see in category.php from twentyten:

    /* Run the loop for the category page to output the posts.
    				 * If you want to overload this in a child theme then include a file
    				 * called loop-category.php and that will be used instead.
    				 */
    				get_template_part( 'loop', 'category' );

    so if it's working, your theme also has "loop' 'category' as template parts of your main loop.

  16. Riaz Farooq
    Member
    Posted 4 months ago #

    Sorry, Deepbevel, I'm not sure if I follow..

  17. deepbevel
    Member
    Posted 4 months ago #

    if you are still trying to get the 2010 archives.php to look like your theme, post a link to your site and we'll see if we can figure out what to do. My previous post suggests we may already be using your theme's archive loop, but I'm not sure.

  18. Riaz Farooq
    Member
    Posted 4 months ago #

    Unfortunately the site isn't live, would it be acceptable if I email you the theme/files?

    I have made some progress rebuilding the template (as previously discussed) but it is now getting a little ugly.

  19. deepbevel
    Member
    Posted 4 months ago #

    use pastebin, that way it will be avalable for others to help with as well.

    I have to say it will be difficult for me to do successful edits which I can't immediately see. I'm not really so good with this that I can tell if it's right just by seeing the code.. I may actually need a copy of your theme in order to make progress, but we shall see how it goes.

  20. Riaz Farooq
    Member
    Posted 3 months ago #

    Hi, sorry for the late reply, I've been through the shit this week... anyway..

    If your still okay to have a look for me that would be great! Please follow the link below and select download, if thats cool:

    [Link removed]

  21. deepbevel
    Member
    Posted 3 months ago #

    Just to be clear, you just want your category archives to work as they should, correct?

  22. Riaz Farooq
    Member
    Posted 3 months ago #

    Yes, that's right!

  23. deepbevel
    Member
    Posted 3 months ago #

    Okay, this looks difficult. I assume this theme is completely custom?
    I've never seen a set up quite like this. I'll play around with it as I can, I may get lucky but if you need this asap you'd better enlist someone who really knows what's up, is the theme author not available?

  24. Riaz Farooq
    Member
    Posted 3 months ago #

    Unfortunately I think it is completely custom!? I've tried to contact the author several times in the past month, with no luck! However, I managed to get hold of his personal e-mail today so perhaps he might help if I contact him personally??

    I'm sorry if this is a pain by the way...

  25. deepbevel
    Member
    Posted 3 months ago #

    I'm sorry I'm not better with this stuff. But it's not always easy to get really good help here. The people who know the most tell least. Not that I blame them. This stuff takes a lot of time to learn and has value.
    Good luck, I'll plug away as I can and get back to you, hopefully the theme writer will beat me to it.

  26. deepbevel
    Member
    Posted 3 months ago #

    I want to ask, how much do you know about the way this theme is set up? is it custom to your specs? Does it fullfill any special functions you specified? In short, why are you using it? what's special about it?i I only ask this because I wonder if there are themes I know which may suit your purpose and be easier to tweek?

  27. esmi
    Theme Diva & Forum Moderator
    Posted 3 months ago #

    With the greatest of respect, this is a commercial theme.
    Riaz Farooq: You need to seek support from the theme's vendors.
    http://neuethemes.com/support/

  28. alchymyth
    The Sweeper
    Posted 3 months ago #

    this line (from pastebin http://pastebin.com/8GVByxnD):

    query_posts('posts_per_page=6&paged='.$paged);

    messes with the category query and changes back to an 'all posts' query;

    change to:

    global $query_string; query_posts($query_string.'&posts_per_page=6&paged='.$paged);

    you might still get problems with the pagination - why not set the number of posts per page to 6 in dashboard - settings - reading ?

  29. deepbevel
    Member
    Posted 3 months ago #

    looks like the heavy guns has arrived.. I'm out!

  30. Riaz Farooq
    Member
    Posted 3 months ago #

    Cheers deep, i'm gonna stick it out with this theme tho as I'm feeling stubborn.. thanks for your time :)

    Esmi, to be fair mate, I've sent countless messages to the support and received nothing back!!

    Sweeper, this code has worked, thank you very much! As you said tho, i'm still having problems with pagination.. I don't understand any of this unfortunately and is one of the issues I've raised with the themes support team and again got nothing.

Reply »

You must log in to post.

About this Topic

Tags