• I’ve read many entries on the use of custom fields or meta-data, but haven’t been able to figure out how to get the ‘listing’ commond (UL) out of my meta-data.

    Basically what I want to do is give ‘Current location:’ information with each post. This works with the meta-data, but I get it with a bullet in front of the list.

    I’ve tried digging in the theme files and the CSS but can’t find where to discard of the UL command.

    Can anyone point me in the right direction how to accomplish this?

    Thanks for your help!

    Remco

Viewing 4 replies - 1 through 4 (of 4 total)
  • Quick and dirty solution: edit the_meta function (in wp-includes/template-functions-post.php, about line 270) to get rid of the list tags.

    Long-term, future-proof solution that doesn’t involve messing with core files: use a plugin such as Get Custom Fields.

    Yeah, I recommend the plugin too… It worked wonders for me ??

    Newest version of CG-Inline can also now print out any custom/meta field >inside< the body of the post, with a simple macro.

    <!--meta:metaFieldName-->

    or something like:

    <em>Current location: <strong><!--meta:metaLocation--></strong></em>

    -d

    Thread Starter Remco Bron

    (@remcobron)

    Thanks for your help, the plugin did the trick indeed!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom fields without listing’ is closed to new replies.