• gulliver

    (@gulliver)


    I have a cpt of ‘channel’, within which there’s parent/children relationships for geographically-oriented sub-channels.

    EXAMPLE:
    Channel #1
    – Channel #1 US
    — Channel #1 NY
    – Channel #1 UK
    — Channel #1 LON

    Channel #2
    – Channel #2 US
    — Channel #2 NY
    – Channel #2 UK
    — Channel #2 LON

    I’m having trouble displaying an unordered list with appropriate indenting of children.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Suyogya Shukla

    (@themeislesupport)

    Hey there,

    In your visual editor, switch to text mode and add the following code:-

    <ul>
    <li>Channel #1
    <ul>
    <li>Channel #1 US
    <ul><li>Channel #1 NY</ul>
    <li>Channel #1 UK
    <ul><li>Channel #1 LON</ul>
    </ul>
    </ul>
    
    <ul>
    <li>Channel #2
    <ul>
    <li>Channel #2 US
    <ul><li>Channel #2 NY</ul>
    <li>Channel #2 UK
    <ul><li>Channel #2 LON</ul>
    </ul>
    </ul>

    Hope it helps.

    Thread Starter gulliver

    (@gulliver)

    @ Suyogya Shukla…

    Thanks.
    Sorry, I poorly explained – although it helps refresh my memory on manually compiling a list, I’m trying to add code to a template rather than add it to a post.

    Suyogya Shukla

    (@themeislesupport)

    Hey there,

    What do you mean by a template? Is it a static template and not WordPress? Thanks!

    Thread Starter gulliver

    (@gulliver)

    @ Suyogya Shukla…

    I’m trying to add code to a WP archive template.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CPT archive display’ is closed to new replies.