Custom post type category page problem (4 posts)

  1. chibib0
    Posted 4 years ago #


    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
    Posted 4 years ago #

    WordPress treats those categories differently, in my experience. The easiest way is to create a custom post type archive page.

  3. bangnt
    Posted 4 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
    Posted 4 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