Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,
    I’ve used that query to get post in first letters….
    $letters = $wpdb->get_col(
    “SELECT DISTINCT LEFT(post_title,1) AS first_letter FROM $wpdb->posts
    WHERE post_type = ‘$post_type’ AND post_status = ‘publish’
    ORDER BY first_letter ASC”
    );

    But, I would like to exclude specific two categories from the searching.

    Actually, I would like to show which letters have posts available.
    And not to include posts from two categories.

    Is there anyone can help me please ??

    Thanks

Viewing 1 replies (of 1 total)