回答編集履歴

1

ANDが抜けていて涙

2019/08/08 00:27

投稿

yukikp
yukikp

スコア797

test CHANGED
@@ -54,7 +54,7 @@
54
54
 
55
55
  global $wpdb;
56
56
 
57
- return $where .= " {$wpdb->posts}.post_title NOT LIKE '' ";
57
+ return $where .= " AND {$wpdb->posts}.post_title NOT LIKE '' ";
58
58
 
59
59
  }
60
60
 
@@ -94,7 +94,7 @@
94
94
 
95
95
  global $wpdb;
96
96
 
97
- return $where .= " {$wpdb->posts}.post_content NOT LIKE '' ";
97
+ return $where .= " AND {$wpdb->posts}.post_content NOT LIKE '' ";
98
98
 
99
99
  }
100
100