Forums

Side Menu (17 posts)

  1. noorl
    Member
    Posted 3 years ago #

    I would like to ask if i can let the results in each title...like Category and pages can be obtained inside a table...

    if yes? how please?

  2. moshu
    Member
    Posted 3 years ago #

    Sorry. you will have to try this again. Could you describe in details what do you want?

  3. noorl
    Member
    Posted 3 years ago #

    Sure i can
    i would like to have the results in sidebar of the pages in a table like that
    <table width="99%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>Cat1</td>
    </tr>
    <tr>
    <td>Cat2</td>
    </tr>
    </table>

  4. moshu
    Member
    Posted 3 years ago #

    "Results"? You mean the output of a template tag? They don't work with tables. You'll have to re-write some functions for that. I don't know how...

    Why would you want that? Maybe if you tell us what is what you want to achieve by that we could come up with a viable solution.

  5. noorl
    Member
    Posted 3 years ago #

    yes it is...i would like to change it and use it as i want
    here is the code but im not good in php to change it

  6. <h2>Categories</h2>
      <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
  7. mean i would like to have my menu and get it from the sidebar

  • moshu
    Member
    Posted 3 years ago #

    I still don't get it why you need tables? What is is the original code cannot do but tables can?
    The code you posted above will display a "list" - and you just have to style by editing the style.css file: it will appear in whatever way you want it.

    No, the code will never display tables.

  • noorl
    Member
    Posted 3 years ago #

    thats bad
    i need the result to be in a table...you know kind of design and decorate....thats all...
    nothing else

  • moshu
    Member
    Posted 3 years ago #

    You can design and decorate million things... without the need for a table.

    Just to get an idea: http://www.csszengarden.com/

  • noorl
    Member
    Posted 3 years ago #

    but i need to have the result merged in a table

  • Chris_K
    Administrator
    Posted 3 years ago #

    What you need is to elaborate on WHY you need a title when CSS exists.

  • noorl
    Member
    Posted 3 years ago #

    sorry dear but i dont understand?

  • Chris_K
    Administrator
    Posted 3 years ago #

    Probably because of my horrible typo! Let's try that again:

    What you need is to elaborate on WHY you need a table when CSS exists.

  • noorl
    Member
    Posted 3 years ago #

    4 sorry i dont know to use it...
    if i know...i would do it there...

    can u help me

  • ryanfitzer
    Member
    Posted 3 years ago #

    This might help get you started. A short intro to CSS (Cascading Style Sheets). This excerpt is from:

    http://www.w3schools.com/css/css_intro.asp

    "Styles Solve a Common Problem

    HTML tags were originally designed to define the content of a document. They were supposed to say "This is a header", "This is a paragraph", "This is a table", by using tags like <h1>, , <table>, and so on. The layout of the document was supposed to be taken care of by the browser, without using any formatting tags.

    As the two major browsers - Netscape and Internet Explorer - continued to add new HTML tags and attributes (like the <font> tag and the color attribute) to the original HTML specification, it became more and more difficult to create Web sites where the content of HTML documents was clearly separated from the document's presentation layout.

    To solve this problem, the World Wide Web Consortium (W3C) - the non profit, standard setting consortium, responsible for standardizing HTML - created STYLES in addition to HTML 4.0.

    All major browsers support Cascading Style Sheets."

  • vavroom
    Member
    Posted 3 years ago #

    Further info on styling. You *really* can do most anything you want to your lists. So the WP brings up a ul, which is a bit different from a dl, but see what can be done with a dl:

    http://caughtya.org/united-states/2006/08/silver-escalade.html
    on that page, the license plate, vehicle, colour, date information, etc, all that is in a LIST, not a table.

    http://css.maxdesign.com.au/listamatic/ has many, many list specific styling options for you to adapt if needed.

  • noorl
    Member
    Posted 3 years ago #

    thank you very much
    i was think that there is somebody do it

    so i will do it and put it here...

  • noorl
    Member
    Posted 3 years ago #

    Dear all i think no need for all the conversation and all what guys write...

    here is the file
    template-functions-category.php
    its inside wp-includes

    enter there and control everything you want to do....

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags