WordPress.org

Ready to get started?Download WordPress

Forums

UL or OL's in Custom Fields (1 post)

  1. ekajatik
    Member
    Posted 3 years ago #

    Hi There

    Previous to upgrade to 3.2 I had code snippets in a custom field, basically an unordered list, but without the enclosing
    UL tag, so just the LI's. This rendered fine (using the
    UL's did not render any bullets when echoed from the custom field).

    With this update to 3.2 all of the snippets I made have been autocompleted with enclosing UL tags! I guess this is a feature?

    well it has screwed up all my posts.

    First Q: Can this be turned off so HTML entered in the editor is just as you write it?
    Second Q: How do you ensure that the

      tags are printed properly when output in a custom field?

      (for Q2, I am using:

      <?php if(get_field('highlights')): ?><br /> <?php the_field('highlights'); ?><br /> <?php endif; ?>

      The highlights only produce bullets in an UL when I do not put open and close tags in the CF. How to fix this so the now default code I have in this CF (which has been autocompleted), will render the bullets correctly?

    Topic Closed

    This topic has been closed to new replies.

    About this Topic