• Is it possible to use a function like wp_list_cat() and ask it to only display one category? I know I can do it by excluding the others I do not want to display… but say I am adding/removing categories, this would mean that I would then have to go into the code and manually change this exclusion every time I changed the structure of my categories.

    Is it possible to, instead of asking it to exclude a certain category(ies) include certain a categoy(ies)??

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • If you only want to display one category, why the heck use a tag, just hard code it.

    Thread Starter altacivil

    (@altacivil)

    that sounds like a great idea… only could you be a little more specific… maybe point me in a direction that would help me out a bit more? (ie. How would I do that?)

    he mean just type the html code of the category directly in the php code page

    instead of wp_list_cat() … put your link <a href ..

    Thread Starter altacivil

    (@altacivil)

    Yes, I understood that bit… I am aware of how to create a link… I suppose what I should have wrote was how do I call up just that one category? Would a link to it just be http://mysite.com/wp/categorynamegoeshere? Or is there a way to say ?

    Thanks for the help so far!

    Thread Starter altacivil

    (@altacivil)

    sorry that “?” should be

    thanks!

    Thread Starter altacivil

    (@altacivil)

    ahh apparently I am just being a noob… it should say [a href=php stuff to call that one specific category]

    Sorry for the numerous postings…

    Edit. Misread.

    well, actually, i would want to use wp_list_cat to display categories which i want to keep dynamic. So hard coding it would make everything WeIrD. And i’m trying to keep it real. SO i would need something like,

    wp_list_cat($This_category, $That_category)

    something tells me i can just put the id’s in there. let me know yo.

    actually, i got it!,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Only list one category?’ is closed to new replies.