Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author itthinx

    (@itthinx)

    Simply using a query:

    global $wpdb;
    $posts = $wpdb->get_results( $wpdb->prepare(
    "SELECT * FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'post'"
    ) );
    Thread Starter raonip

    (@raonip)

    Hi,

    Thanks…but how could I use the default WP_query to do that? Any clue!?

    Thanks!!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Groups] wp_query list Posts Restricted’ is closed to new replies.