Forum Replies Created

Viewing 1 replies (of 1 total)
  • hi,

    I am using wpdatatable plugin but i have one issue.

    This below query i am using but it does not produce the results

    $table=’wp_post’;
    $user_id =1;
    “SELECT ID,post_modified FROM $table WHERE post_author = ‘”.$user_id.”‘ AND post_type like ‘sfwd-courses’ AND post_status IN (‘draft’,’publish’)”

    after that i trying the below coding its working

    SELECT ID,post_modified FROM $table WHERE post_author = 1 AND post_type like ‘sfwd-courses’ AND post_status IN (‘draft’,’publish’)”

    but i need to send the user_id dynamically. I don’t know what the issue exactly pls guide me

    thanks

Viewing 1 replies (of 1 total)