• Resolved mark-up

    (@mark-up)


    Hello,

    i’m trying to get a single post by three creteria:
    1. a specified category AND
    2. a specified custom taxonomy (‘p_status’ == ‘done’)
    3. and it should be the last post matching creteria 1 and 2

    I started with

    get_posts(array('numberposts' => 1, 'category' => 1));

    So far this works fine. But I can’t figure out how to implement my custom taxonomy into the search.

    I thought
    get_posts(array('numberposts' => 1, 'category' => 1, 'p_status' => 'done'));
    should do the job, but obviously it’s not that simple:(

    Any ideas? Thanks for Help
    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Get Posts by Category & Custom Taxonomy’ is closed to new replies.