WordPress.org

Ready to get started?Download WordPress

Forums

URL for a posts that are both in a specific Category & Custom Post Type (4 posts)

  1. Clicknathan
    Member
    Posted 2 years ago #

    Does anyone know if there's some functions.php code, or a WP default URL, that will allow me to restrict the listings being shown to a specific Category & Custom Post Type.

    By Category, I do mean the default Categories taxonomy built into WP, which I've assigned to my custom post type Videos (cpt_videos is it's name).

    If I don't use Pretty Permalinks (ie, leave them set to the default), I can get these pages via URLs such as mywebsite.com/?post_type=cpt_videos&cat=9

    However that stops working once you turn permalinks on. Any idea as to how to accomplish this with pretty permalinks?

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. Clicknathan
    Member
    Posted 2 years ago #

    Thanks ESMI, but I was hoping for a URL solution of some type as we'll have so many possible combinations (we've got about 15 Custom Post Types & 100 categories or so). I believe I could set up custom queries to figure this all out, was just hoping there was a pretty permalinks URL equivalent to the default permalink URL structure.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    None that I know of.

Topic Closed

This topic has been closed to new replies.

About this Topic