Home Forums Front-end Issues Get CPT by both Category AND Custom Field?


Get CPT by both Category AND Custom Field?

  • Yeah, still fucking around with this:

    I need to get 3 posts from each category of all brands. Simple, right?

    Nope, a fucking nightmare.

    Ask the database to give me:

    The top (by the manual reordering in the admin) 3 Custom Post Types FROM ALL Categories BY EACH Brand.

    So that I can render the given number of boxes on the frontend each box containing; 3 rings of the Brand Yabba, 3 necklaces of the Brand Dabba and 3 brooches of the Brand Doo … etc.

    I don’t know why my head explodes everytime I try to get stuff from the DB.


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.