WordPress.org

Ready to get started?Download WordPress

Forums

Categories & Sub categories - help! (1 post)

  1. evie123
    Member
    Posted 2 years ago #

    Hi all,

    I'm new to wordpress, so sorry if this seems an obvious one!

    I want to show the title of the first category only, then list the pages within it.

    I've tried a few different codes but can't get it right

    Would be really grateful for any help.

    Thanks!

    --

    BTW this is my HTML:

    <div class="list">
                    <p class="page">Page</p>
                    <ul>
                        <li><a href="#">Sub page</a></li>
                        <li><a href="#">Sub page</a></li>
                    </ul>
                </div>
                <div class="list">
                    <p class="page">Page</p>
                    <ul>
                        <li><a href="#">Sub page</a></li>
                        <li><a href="#">Sub page</a></li>
                    </ul>
                </div>

Topic Closed

This topic has been closed to new replies.

About this Topic