| @@ -55,9 +55,9 @@ | ||
| 55 | 55 | // ] ); |
| 56 | 56 | // $this->register_sub_condition( $in_sub_term ); |
| 57 | 57 | // } |
| 58 | 58 | // } |
| 59 | - | |
| 59 | + | |
| 60 | 60 | $by_author = new PostByAuthor( $this->post_type ); |
| 61 | 61 | $this->register_sub_condition( $by_author ); |
| 62 | 62 | } |
| 63 | 63 | |
| @@ -62,9 +62,9 @@ | ||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | protected function register_controls() { |
| 65 | 65 | $this->add_control( "posts_query_" . $this->get_name(), [ |
| 66 | - 'field' => 'id', | |
| 66 | + 'field' => 'ID', | |
| 67 | 67 | 'query_type' => 'posts', |
| 68 | 68 | 'options' => [ '' => 'All' ], |
| 69 | 69 | 'query' => [ 'post_type' => $this->get_name() ] |
| 70 | 70 | ] ); |