WordPress ISSUE

Status
Not open for further replies.


im pretty sure it uses tables... so wait let me figure this out, ill get back to you.
 
Crunchi, this is what I added to my site to make a horizontal menu

<div id=”navigation”>
<center><?php wp_list_pages('title_li='); ?> </center>
</div>

but that lists the pages, like about page etc...

to list categories, it may be something like wp_list_categories im not really sure.
 
Common man, don't you think I allready tried everything I could and throw my mouse in the wall few times before I opened this thread?

First off your question makes no sense and you need to re-phrase that shit so normal people can understand it, what are you trying to do here, display your category items in a horizontal manner instead of a vertical one?

If so then look through your index.php and page.php files for your category tag
Code:
<?php the_category(',') ?>
its slightly different with each template your using and change the elements around it to fit your situation, for instance to make them display as CAT1, CAT2, CAT3

Then do something like this:

HTML:
<div class="menu">
<ul>
  <li>
    <?php list_cats('name') ?>
  </li>
</ul>            
</div>
Now your CATS are listed horizontally instead of vertically.

EDIT: This is not a requirement just a suggestion but if anyone needs to know anything about wordpress then you can leave your questions in my thread "Complete Guide To Wordpress & Blogging"
 
First off your question makes no sense and you need to re-phrase that shit so normal people can understand it, what are you trying to do here, display your category items in a horizontal manner instead of a vertical one?

If so then look through your index.php and page.php files for your category tag
Code:
<?php the_category(',') ?>
its slightly different with each template your using and change the elements around it to fit your situation, for instance to make them display as CAT1, CAT2, CAT3

Then do something like this:

HTML:
<div class="menu">
<ul>
  <li>
    <?php list_cats('name') ?>
  </li>
</ul>            
</div>
Now your CATS are listed horizontally instead of vertically.

EDIT: This is not a requirement just a suggestion but if anyone needs to know anything about wordpress then you can leave your questions in my thread "Complete Guide To Wordpress & Blogging"

Sorry for not being clear in my sentences but I'm need some sleep desperatly..

However you got that right I want categories in horizontal, but your html code doesn't help..

take care
 
did you try this?

<div id=”navigation”>
<center><?php wp_list_pages('title_li='); ?> </center>
</div>
 
Sorry for not being clear in my sentences but I'm need some sleep desperatly..

However you got that right I want categories in horizontal, but your html code doesn't help..

take care

Yes it does, look at Heroes Archives (mySite) which has the categories in a horizontal manner, thats where the code came from.

Post the section of code that has your category tag so we can have a look at what its doing.
 
Yes it does, look at Heroes Archives (mySite) which has the categories in a horizontal manner, thats where the code came from.

Post the section of code that has your category tag so we can have a look at what its doing.

What would you like to see, i just copy/&pasted your html code and it it's still list type.. can you give me all your "menu" styles from css..

If that won't work i'd like to see your whole wp theme.. ..if it's ok?

take care guys and tnx for help
 
Ok you can download the theme from here and the css to go with that above code I supplied is

Code:
/* Menu */

.menu {
    [B]display: block;[/B]
}
 
Last edited:
Make the LI a block element (display: block) and each individual one will display on a new line unless you use certain positioning or floats.

#yourlist li {

display: block;

}
 
WOW guys tnx it's working now, WF is the place where magics happens--

How did I do it?

Code:
<div class="menu">
  <li>
<?php wp_list_categories('show_count=1&title_li='); ?>
  </li>  
</div>

afther that I applied this css style:

Code:
.menu li{
list-style: none;
    display: block;
    float: left; }
 
Make the LI a block element (display: block) and each individual one will display on a new line unless you use certain positioning or floats.

#yourlist li {

display: block;

}

I was just going to post this... :rasta:
 
I did it like this for the php code:

Code:
<div id="catmenu">
<ul>
<li>
<?php wp_list_categories('orderby=id&show_count=0&use_desc_for_title=0&title_li=' . __('') . '&include=1,11,12,13,14'); ?></li> 
</ul>
</div>

and this for the css:

Code:
#catmenu ul {margin: 0; padding: 0; 
    list-style-type: none; list-style-image: none; }
#catmenu li {display: inline; }

(and yes I am posting this after a solution has been reached, but maybe this can offer other ideas as well)

:rasta:
 
I did it like this for the php code:

Code:
<div id="catmenu">
<ul>
<li>
<?php wp_list_categories('orderby=id&show_count=0&use_desc_for_title=0&title_li=' . __('') . '&include=1,11,12,13,14'); ?></li> 
</ul>
</div>
and this for the css:

Code:
#catmenu ul {margin: 0; padding: 0; 
    list-style-type: none; list-style-image: none; }
#catmenu li {display: inline; }
(and yes I am posting this after a solution has been reached, but maybe this can offer other ideas as well)

:rasta:

I like to display:inline over floating a list for a horizontal nav myself, though thats just me and the way I do things on my own sites.
 
Status
Not open for further replies.