Recupera l'ID post più antico
Domanda
Sto cercando di ottenere l'ID del post più antico con il post_type = job_listing
e post_status = publish
. Sto usando il codice qui sotto ma non funziona. Qualcuno potrebbe aiutarmi per favore
$oldestID = mysql_query("select id from wp_posts where post_type = 'job_listing' and post_status = 'publish' order by post_date ASC");
Grazie!
Nessuna soluzione corretta
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange