ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Can't get fields to display side-by-side

December 22, 2009 11:37am

Subscribe [2]
  • #1 / Dec 22, 2009 11:37am

    PostScript

    7 posts

    I’m going crazy because I can’t get any fields to display next to each other, for example, an employee name and their position. What on earth am I missing?! I’ve tried just using the field tags and wrapping them in p, div and h2 tags, but they always output on separate lines. Here’s the basic code:

    {exp:weblog:entries weblog="team" limit="1" disable="comments|trackbacks"}
    
    <h2>{name} | {position}</h2>
    
    <p>{/exp:weblog:entries}

    It always comes out:

      Name
      |
      Position

    when I want:

      Name | Position

    This is my first EE site and this is driving me crazy; I feel like a complete idiot not being able to figure this out.

    Thanks!

  • #2 / Dec 22, 2009 11:45am

    Rob Allen

    3114 posts

    Go to your custom weblog/channel fields and make sure the field formatting is set to None

  • #3 / Dec 22, 2009 11:47am

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, PostScript.

    It looks like you need to set those two fields to use None instead of xhtml.

    Does that help?

  • #4 / Dec 22, 2009 11:52am

    PostScript

    7 posts

    Thank you both! That is exactly the cause, after two weeks of struggling with this is just occurred to me that the default fields (like title and date) didn’t have this problem and that must be the reason! Ahh, gotta love the obvious overlook!

  • #5 / Dec 22, 2009 12:03pm

    Sue Crocker

    26054 posts

    Thanks for the assist, bluedreamer!

    No worries, Glad things are working again. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases