Skip to main content
2 votes
Accepted

Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder

There are 2 places that could have issues: Your first wpdb::prepare() here: // Prepare and execute the count query $count_query = $wpdb->prepare( $count_sql, ...$query_params ); The initial ...
Anh Tuan Hoang's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible