Viewing 5 replies - 1 through 5 (of 5 total)
  • Probably – if you hack the core.
    A more elegant solution is to use CSS to style the display in any way you wish.

    Thread Starter roni_bats

    (@roni_bats)

    Hey Podz,

    I tried using “list-style-type: none” in the CSS. Problem is, ol’s display differently in Firefox and IE (most common browsers here in the Philippines). In Firefox, it’s automatically indented (by about 30pixels?) while in IE6, it is not. Any suggestions to correct this?

    It’s just that I’m very particular about the way stuff appear in my pages and as much as possible, I’d want my pages to look the same regardless of the browser (which, I have realized, is giving myself a headache).

    Thanks!

    You can use this little (though admittedly a bit complicated) script to output custom field data in a post without the extraneous HTML:

    <?php
    if($post_meta_cache[$id])
    foreach(get_post_custom_keys() as $key)
    foreach(get_post_custom_values($key) as $value)
    echo "$key: $value<br />";
    ?>

    Just modify the echo line to change how you want the content of your custom fields to display.

    the_meta() generates an UL not OL list, FYI. And just change the margin in the UL and LI to zero or a minus and it should work like straight text. I did this with mine.

    Thread Starter roni_bats

    (@roni_bats)

    Thanks Kafkaesqui. I hope this gets the work done.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Fields without the <ol> Tags’ is closed to new replies.