• I wish to put both the wp_register and wp_loginout items (includes? templatewhachamiggies?) in the footer of a new Wp 1.5 template/theme. When I did, the wp_register() item inserted a line break. Further investigation to a reference site for WP (site uses frames, scroll way down to find wp_register() item) reveals the following:

    wp_register( $before = "<li>", $after = "</li>" )

    I assume that the
    <li> tags are defaults. That’d explain the line breaks. And I could modify them to “nothing” by supplying different, um whaddayacallem?, arguments, as shown here:
    wp_register("","")

    I tried it; it worked.

Viewing 3 replies - 1 through 3 (of 3 total)
  • And thanks for dropping these into Codex. Every little bit of documentation helps.

    Thread Starter AuntiAlias

    (@auntialias)

    Yer welcome. 🙂 Heck, I wanted to be able to find it if I needed it again. 🙂 (plus, I’ve written documentation before–tho not of code–, so I figured I could help. Tho I did poke around to see the changes you made to make that page match the others. I guess if I can write rough draft stuff and let others who know more the formatting consistency stuff do their thing, then I’ll continue if I see something that needs doing. The Fear of Not Knowing Enough [or is that Not Knowing Everything?] tends to get in the way of contributing some good info.)

    jweaks

    (@jweaks)

    Sweet, I was looking for this!

    It also works for wp_loginout. I wanted them in a horizontal header bar and could not get it to work until I read this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘TIP: wp_register() and getting rid of list item tags’ is closed to new replies.