WordPress.org

Ready to get started?Download WordPress

Forums

Custom post type category page problem (4 posts)

  1. chibib0
    Member
    Posted 2 years ago #

    Hi,

    I have a problem with custom post types category page. Its when viewing a category containing the custom post type posts, there is no posts showing even there is.

    Sorry, but there aren't any posts in the Music Songs category yet.

  2. csleh
    Member
    Posted 2 years ago #

    WordPress treats those categories differently, in my experience. The easiest way is to create a custom post type archive page.
    http://codex.wordpress.org/Template_Hierarchy#Custom_Taxonomies_display

  3. bangnt
    Member
    Posted 2 years ago #

    I have the same problem like chibib0. I have a category containing both normal post type and custom post type. But when viewing this category, it only display the normal post, the custom post type does not.

    Could anyone help me and chibib0 to solve this problem ? Thanks.

  4. csleh
    Member
    Posted 2 years ago #

    It will have to be treated as if it were a completely different thing, and use a new query for it.
    YOu might try something along these lines, posted by MichaelH on this thread:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic