• I have a small blog up and running and all is going well.

    I wish to add a couple of Pages to the sidebar and am using wp_list_pages ok.

    2 questions.
    1. How do I change the <h2> tag on the Pages title as I want to use a <div class> title for consistency.

    2. The page is categorized as general, but when I select the general category, even from the page itself, it doesn’t appear on the category listing. Is it possible to make this happen. It isn’t a major problem but I was wondering why pages can have categories if they cannot list on the category page. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1. See the examples at Template_Tags/wp_list_pages and replace the h2 tags.
    2. Pages do NOT have categories. They are always assigned to the default category of the blog, but that’s only an internal technical thing. From a practical point of view think about them as not having anything to do with the categories 🙂

    Answer to question 1

    <h2 class=”polaroidtext2″> Hello my headline </h2>

    or

    <div class=”polaroidtext2″><?php _e(‘My Categories:’); ?></div>

    How bout that?

    oops forgot the sample CSS you will need to include:

    .polaroidtext {
    color: #FDF5E6;
    position: static;
    top: -0px;
    font-size: 100%;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    text-align: center;
    background-color: #1E90FF;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Listing Pages under categories’ is closed to new replies.