Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • KrisRhoades

    (@thewellministries)

    I am also interested in this information or will you make add link to page and group at the same time available in the regular version?

    Thread Starter KrisRhoades

    (@thewellministries)

    For anyone that is trying the same thing, here is the code I used. Might not be the best code but I figure posting it here might make someone’s life a little easier, even though you won’t learn as much this way. I would have much rather been writing in my blog than trying code after code till one worked.

    a href=”index.php?cat=xx”>Category_Name</a

      <?php wp_list_cats(‘sort_column=name&sort_order=asc&optioncount=1&hide_empty=0&children=1&child_of=x&exclude=zz’) ?>

    xx=Category_ID#
    zz=any sub categories to exclude
    I put one line for each of my parent categories.
    Be sure to put the opening and closing < > on the first line but I didn’t include it so it would print here.

    Thread Starter KrisRhoades

    (@thewellministries)

    moshu,

    Thanks for your answers but I tried and tried and could not get it to work. For some reason I just could not figure out the CSS to make the parent headings and the children and the lines between each work together. I was getting some extra lines after each parent section and no line under the parent listing. Needless to say, I gave up and resigned to have it the way I already did.

    I did, however, fix my own problem before totally giving up. It just took some time. One thing you did steer me towards was wp_list_cats, which, with a little effort, worked as I wanted it to when list_cats would not. (I did not need to add anything to the CSS and used the arguments.) The template I had used the list_cats but for some reason the arguments did not work as I had wanted them to. Also if anyone is interested, to get it to work as I wanted when using the wp_list_cats I was not able to use the “exclude all but the categories I wanted” but instead I had to use the “child_of” argument listing the parent category and then exclude any other category in that parent category that I didn’t want, which actually was better in the long run as I wasn’t typing so many numbers in the argument. I don’t know why it didn’t work that way but it could have something to do with the fact that my parent categories never have any posts but are just there for organizing. These may be bugs in the program or something that I was doing wrong but either way I’ve now got it to look like I wanted.

    Thread Starter KrisRhoades

    (@thewellministries)

    That looks like what I had in mind to use but I am unable to determine just how you did this to recreate it. Would you please post the exact info you used to set this up?

    Thanks

    Thread Starter KrisRhoades

    (@thewellministries)

    Nope, tried them all. They count comments, users, characters, words, categories, the total number of posts in the entire blog, but not posts in the categories.

    Any other thoughts?

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