WordPress.org

Support

Support » How-To and Troubleshooting » Categories & Sub categories – help!

Categories & Sub categories – help!

  • 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>
  • The topic ‘Categories & Sub categories – help!’ is closed to new replies.