nel momento in cui provo a visualizzare nella mia home page tutti i post recenti di tutte le categorie non c’è alcun problema, il problema si verifica nel momento in cui devo visualizzare solo quelli di una determinata categoria o di un insieme di categorie, l’errore che mi spunta è questo:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘>post2cat}.category_id IN (2)) ORDER BY post_date DESC LIMIT 0, ]
SELECT xoop_wp_posts.ID, xoop_wp_posts.post_title, xoop_wp_posts.post_date FROM xoop_wp_posts LEFT JOIN xoop_wp_post2cat ON (xoop_wp_posts.ID = xoop_wp_post2cat.post_id) WHERE post_status = ‘publish’ AND ({$wpdb->post2cat}.category_id IN (2)) ORDER BY post_date DESC LIMIT 0, 10
Mi sapere aiutare a risolvere?
Grazie
Ciao