• I have a custom field called “Source”. I want to display it at the beginning of the “Content” field with no line break separating the two fields. (I’m using Scott Reilly’s excellent “Get Custom Field Values” plugin.)

    Here’s how it’s formatting now. And here’s what I want it to look like. Basically, the issue is that I’m not able (so far) to get rid of the line break after the plugin’s output.

    Any suggestions?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • without actually seeing your page/css, hard to say. You can try applying a { display: inline; } to the css for the custom field, might need to wrap a span or div or something around it.

    -d

    Thread Starter hooopla

    (@hooopla)

    Sorry, here’s the index.html and here’s the css. I’ve tried using separate classes for the plugin call and the content, with a <p style=”display:inline;”>. I’ve also tried adding “display:inline” to the storycontent div. No joy so far.

    Thread Starter hooopla

    (@hooopla)

    Got it! View Source shows that the_content is preceded with a tag. So I added “display:inline” to the story_content class. Now all is well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display custom field value inline’ is closed to new replies.