Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WP query problem

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #44977
    bastunqk
    Participant

    Hi.
    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 ?
    Regards

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.