Jump to content


Photo
- - - - -

Showing Categories In Two Columns


  • Please log in to reply
8 replies to this topic

#1 Eileen Starbuck

Eileen Starbuck

    Super Member

  • Members
  • 125 posts
  • LocationOverland Park, KS

Posted 10 May 2012 - 04:52 PM

WordPress comes with a category widget which is fine, but I'm just looking for advice on how to create a sidebar widget that shows categories in two columns...versus one long list.

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 10 May 2012 - 07:40 PM

The default category widget does just list all categorized posts. However, you can use this plugin as a shortcode in numerous text widgets, giving you multiple columns

Please Login or Register to see this Hidden Content

Just select the categories you want to appear. Of course, if all your posts are in only one category, it's going to be a long list. If you want, you can also create a custom menu in each sidebar, providing links to the categories as you want them.

#3 Eileen Starbuck

Eileen Starbuck

    Super Member

  • Members
  • 125 posts
  • LocationOverland Park, KS

Posted 10 May 2012 - 09:20 PM

Hmmmm...
I installed that plugin, but that's not what I'm after. I'm talking about having columns in my sidebar widget. For example:

running tips__________triathlons
shoe reviews_________best routes
training tips__________cross-training
water bottles_________weights



#4 WebWerx

WebWerx

    Advocate

  • Members
  • 546 posts
  • LocationCanada
  • Framework Version:2.2
  • Country: Country Flag

Posted 10 May 2012 - 09:25 PM

Hmmm. You could use a plugin like BadAss Shortcodes to create the columns, then pull the categories with the appropriate PHP call.... sloppy... but it may work. @rangelone: What do you think? Can one insert PHP code in widgets or just HTML? @rhelling: So the left column would have the Categories: running tips shoe reviews training tips water bottles And the right the others?

#5 Eileen Starbuck

Eileen Starbuck

    Super Member

  • Members
  • 125 posts
  • LocationOverland Park, KS

Posted 10 May 2012 - 09:53 PM

Correct. I couldn't show the appearance correctly in this comment without using "_"

#6 WebWerx

WebWerx

    Advocate

  • Members
  • 546 posts
  • LocationCanada
  • Framework Version:2.2
  • Country: Country Flag

Posted 10 May 2012 - 09:55 PM

Hmmm.. then the only question to answer is the one I had regarding using PHP code in widgets..... BTW, I use Column-matic for my columns. It's not too bad.

#7 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 11 May 2012 - 02:43 AM

To add PHP code to a widget you probably need some kind of widget plugin like this:

Please Login or Register to see this Hidden Content



#8 Eileen Starbuck

Eileen Starbuck

    Super Member

  • Members
  • 125 posts
  • LocationOverland Park, KS

Posted 11 May 2012 - 02:11 PM

...probably over my head. I'll stick with the one column widget for categories. ;-) Thanks though.

#9 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 11 May 2012 - 02:18 PM

You're welcome :)