[Support request] Custom Post Type Not Displaying Properly on Category/Tag Archives

Home Forums Support [Support request] Custom Post Type Not Displaying Properly on Category/Tag Archives

Home Forums Support Custom Post Type Not Displaying Properly on Category/Tag Archives

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #1591259
    Goran Dragutinovic

    I removed is_archive() from the above 2nd if statement and it seems to have done the trick.

    Also removed the 3rd if statement as it is showing up in search even without that code.

    Thoughts?

    #1592393
    Tom
    Lead Developer
    Lead Developer

    That code will include your CPT posts in your regular archives. Is that the intention? It seems like you shouldn’t really need that function at all if you’re wanting to keep things separate.

    #1592773
    Goran Dragutinovic

    The intention is to have CPTs in regular archives, but not regular archives in CPT archives.

    Seems to be working that way now. Do you foresee any issues with leaving it as is?

    Otherwise, I can mark this as solved.

    #1593486
    Tom
    Lead Developer
    Lead Developer

    That should be fine – you’re only altering the query for the category taxonomy and the main blog page 🙂

    #1636118
    Sampat Jangir

    Thank You Bro………………..

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.