WordPress.org

Ready to get started?Download WordPress

Forums

New Blogroll manager and Theme Development complications. (16 posts)

  1. onechrisjones
    Member
    Posted 7 years ago #

    So, I am trying to do my own theme for 2.1, and am having some trouble-
    Is there a way that i can modify how my category headings are displayed with...
    <?php wp_list_bookmarks(); ?>?

    I want to call my category name, as well as my category content list- but i think i want to do it in different statements.

    Right now... i am using

    <?php wp_list_bookmarks('category=8&show_images=1&show_description=0&orderby=url&title_li=0'); ?>

    to list a single category at a time... (i am pretty ignorant with php... but have gone the lengths to read what all of this does... i have already read this...)

    Are there any arguments that can separate the category header and list elements, and display either in the html tags I choose?
    Thanks.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    I'm confused. What exactly are you wanting to do? What do you consider to be a "category header"? What do you mean by separate them? You have to be specific in order for us to understand what it is that you want to do.

    And really, everything is on the codex page you linked to. It's fairly self-explanatory. But if there's something you don't understand on it, I'll try to explain it better.

  3. onechrisjones
    Member
    Posted 7 years ago #

    thanks... if you could look,
    http://www.chrisandevie.com/blog

    i am trying to get the extra category heading out of there(in the sidebar).

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    I don't see any sidebar. What are you talking about?

    Looking at your page, I'd say it's really screwed up, as I'm getting back PHP code in the source.

  5. onechrisjones
    Member
    Posted 7 years ago #

    sorry... /blog

    forgive the mess.

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Okay, I see it now, but what part do you want to remove? What's a "category heading"? Could you please be very specific? What is the part that you consider to be "extra"?

  7. onechrisjones
    Member
    Posted 7 years ago #

    i am using a javascript effect in the sidebar... and i am trying to isolate the category headings from the lists...
    so i can classify them.

    Maybe that is a bit more clear... I removed the extra blogroll display

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Chris: Ahh. I see now. Okay. Give me a second here.

  9. onechrisjones
    Member
    Posted 7 years ago #

    Sorry, man...

    Right now... there are only 2 instances of blogroll, and i want only one....
    the main one.

    see the big one? and the little one when you click it?
    i want to get rid of the little one.

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Okay, so you want the second instance of the word "blogroll" to go away. Right? Try this.

    <?php wp_list_bookmarks('category=8&category_before=&category_after=&categorize=0&show_images=1&show_description=0&orderby=url&title_before=&title_after=&title_li=&nbsp;'); ?>

    Edit: I modified it slightly, to get rid of the extra LI around the list as well. This should prevent the incorrect offset.

  11. onechrisjones
    Member
    Posted 7 years ago #

    Very nice....
    thanks so much for the help, man....
    I spent hours working on that.

  12. onechrisjones
    Member
    Posted 7 years ago #

    so you are really getting php in the source?

  13. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    On your urbanfloral page, yes, I am.

    <body>
    <div id=\"envelope\">
      <div id=\"content\">What THE HECK IS THIS??<br />
        Content, My Friend, Content.<br />
        <?php include \"header.php\"; ?>
    
        <div id=\"container\">

    Note the php bits? Just go to that urbanfloral link earlier and view source. You see PHP code, where PHP code should not be.

  14. Root
    Member
    Posted 7 years ago #

    What are all these \ slashes?

  15. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    The slashes are this forum being annoying. It inserts them in front of quote marks.

  16. Root
    Member
    Posted 7 years ago #

    Annoying? It certainly is. What is Matt doing?

Topic Closed

This topic has been closed to new replies.

About this Topic