The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

WP query problem

  • # May 22, 2013 at 5:53 pm

    I have problem with query in WP.
    What i need is to get all post’s from custom post type which starts with A and have defined term.
    Here is my sql:

    SELECT * FROM $wpdb->posts, $wpdb->terms
    WHERE post_title LIKE 'А%'
    AND post_type = 'filmi-i-serialii'
    AND post_status = 'publish'
    AND slug = 'igralni';

    But this return’s me all post’s in filmi-i-serialii post type not only that is in tax igralni.
    So how to do it ?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed