| User | Post |
|
17:54 7. August 2008
| pointysticks
Member
| | West Wales, UK | |
|
| posts 18 |
|
|
Thanks for having a look for me, Micheal. I'm still working on the problem. If I find a solution, I'll post it here.
Brenda
|
|
|
|
|
This is really weired since it looks like you call another full loop inside your tab. Unfortunately I don´t have a solution in mind.
|
|
|
14:18 6. August 2008
| pointysticks
Member
| | West Wales, UK | |
|
| posts 18 |
|
|
It's not a stupid question, it's the first thing I checked. What I am trying to do is call an unordered ist of categories from the parent category #3. This is the code I found for this on the WP site under the list_categories template tags:
<ul> <?php wp_list_categories('orderby=id&show_count=1 &use_desc_for_title=0&child_of=3'); ?> </ul>
This code creates the effect I described in an earlier post, where the categories list (although this time there's no formatting) but it also looks like the entire index page including sidebars loads in the tab as well. I've left the code in place so you can have a look at what the code is doing to the formatting (Audio Archive tab) as the site isn't yet live. I'm still very new to creating and changing template tags, so I'm really not sure what to try next.
Micheal (or anyone really who's added more than the standard number of ui.tabs to their site, and knows how to use them), if you get a chance, I wonder could someone help me troubleshoot by recreating this in a different Branford site? If it's a glitch, it would be good to know that, and if it's only happening on my site, that would help me try to figure out why this tag won't work for me.
Brenda
|
|
|
|
|
maybe a stupid question but the only solution I have in mind: Do you use the right (and existing) category IDs?
|
|
|
10:28 2. August 2008
| pointysticks
Member
| | West Wales, UK | |
|
| posts 18 |
|
|
The trouble I was having happened when I used this from the sidebar:
<ul class=”subnav”> <?php wp_list_categories('orderby=order&hide_empty=1&title_li=&exclude=7');?> </ul>
I got the subnav styles that I wanted, but also the entire index page seemed to be loading inside the new tab. When I changed to this:
<?php wp_list_categories('orderby=order&hide_empty=1&title_li=&include=4,5,6,7,8,10,9');?>
I get a single bulleted line that reads “No catagories”. Have a look here. The tab in question is “Audio Archive”.
|
|
|
|
|
You say, you have issues to set up a new tab. What exactly is your problem here? Would be good if you could post your code of ui.tabs.php.
The code from the sidebar normally should work. If you like to include certain caty rather than exclude others just do it like this (for example)
<?php wp_list_categories('orderby=order&hide_empty=1&title_li=&include=7,4,10');?>
|
|
|
18:56 1. August 2008
| pointysticks
Member
| | West Wales, UK | |
|
| posts 18 |
|
|
Your Website or Blog URL: http://cast-on.com/new Your themes version: latest Your WP Version: WP 2.6
With limited knowlwdge of php I'm trying to create a new tab on the main page that displays a set group of catagories, and I keep breaking the theme. I thought maybe the piece of code from the sidebar would work:
<?php wp_list_categories('orderby=order&hide_empty=1&title_li=&exclude=7');?> Sadly, it doesn't appear to be that simple. I've got a lot of catagories, so it makes sense to call the ones I want, rather then list those to exclude. Can anyone help with this?
Many thanks.
|
|