Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • cfx

    (@cfx)

    @ Danny, that’s not entirely accurate as I have tried all of the changes you mentioned and my site(s) were still hosed. I had to deactivate the plug-in…

    cfx

    (@cfx)

    I have had the same issue, along with a host of other problems since I upgraded to the latest build…Can’t seem to get rid of it.

    Thread Starter cfx

    (@cfx)

    Anyone have any thoughts on this? Or is it just not possible?

    Hello TheImperial,

    It looks to me like your trying to get to much mileage out of one WP loop. Try creating a WP loop for each category you wish to display, this will also enable you to change your “display code” inside each loop independently with no fear of hosing other category loops.

    For Example:

    < -- 1st Loop Start -- >
    <?php query_posts('category_name=YOUR_CAT_NAME&showposts=10'); ?>
    <?php while (have_posts()) : the_post(); ?>
    
      Display Markup Here
    
    <?php endwhile;?>
    
    < -- 2nd Loop Start -- >
    <?php query_posts('category_name=YOUR_2ND_CAT_NAME&showposts=10'); ?>
    <?php while (have_posts()) : the_post(); ?>
    
      Display Markup Here
    
    <?php endwhile;?>
    
    etc...

    Hope that helps

    Thread Starter cfx

    (@cfx)

    Thank you for the reply MichaelH 🙂

    I was wondering if you or anyone else that happens by this thread new of a way to make category name in the above codes WP_Query() dynamic so I don’t have to make a category template for all of the sites categories…

    <?php $my_query = new WP_Query('category_name=CAT_NAME_Variable&tag=TAG_NAME&orderby=title');

    I see that the page category title is outside the loop, but I can’t seem to find a method to get the category name or slug into that wp_query() statement.

    Do you or anyone else have any experience with this?

    *edited due to formatting screw up

    Thread Starter cfx

    (@cfx)

    Thanks for the reply MichaelH…

    I thought the code looked decent, I guess I am just worried that I missed something or that it could have been written better.

    I am racking my brain trying to figure out how to allow pagination on the last loop only and only showing the last loop on paginated pages…

    Any other thoughts?

Viewing 6 replies - 1 through 6 (of 6 total)