WordPress.org

Ready to get started?Download WordPress

Forums

Use category pages instead of WordPress Page? (2 posts)

  1. bwooster47
    Member
    Posted 7 years ago #

    I'm new to WordPress, use Drupal primarily, but for a smaller site, looking into WordPress, am comforable with PHP etc.

    The Pages (with capital P) I created work fine in WordPress, except I found that the Page content is not listed in the results page - WordPress search only searches posts, it seems.

    Then I discovered that one can create category template pages, and that got me another option instead of Pages - I could just create new categories for the Pages I need, and then instead of a Page, I just use a URL that lists all posts in that particular category. Template files allow me to make this look the way I need.

    And I get search capability.

    Any one have any other differences/issues with above?

    My Pages are simple, I can easily simulate them with posts, so above would work.

    Of course, it seems it is easier to manage Pages - such as use wp_list_pages to automatically create a list of URLs to my pages. If I use categories, each time I add a category I need to edit the template files to include/exclude the category in various places.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Of course, it seems it is easier to manage Pages - such as use wp_list_pages to automatically create a list of URLs to my pages.

    Have you looked into wp_list_cats?

    Categories are usually easier to deal with than pages, in my opinion. Why? Because a page is sort of "static" content. If you want to make posts then you really can't organize them into pages, but you can organize them into categories.

    The short of it is to use both. Pages for static content, posts for blog content, categories to organize the blog content.

    As for your original problem, there are plugins that will extend the search function to pages as well: http://randomfrequency.net/wordpress/search-pages/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags