La seguente select per Mysql (che può essere migliorata, perchè l’ho generata molto rapidamente) estrae tutti i Tags contenuti in un database WordPress.
[php]
SELECT DISTINCT wp_terms.term_id as tag_ID,wp_terms.name as tag_name
FROM wp_terms, wp_term_taxonomy, wp_term_relationships, wp_posts
WHERE wp_term_taxonomy.taxonomy = 'post_tag'
AND wp_term_taxonomy.term_id = wp_terms.term_id
AND wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id
AND wp_term_relationships.object_id = wp_posts.ID
AND wp_terms.term_id = wp_term_taxonomy.term_id
{$exclude_sql}
GROUP BY tag_name
ORDER BY tag_name
[/php]
Seguici su:
Potrebbero Interessarti anche:
Per maggiori informazioni, per suggerimenti e ottenere un preventivo gratuito per le tue esigenze, contatta la nostra Web Agency.
Il nostro staff di professionisti sarà lieto di fornire tutte le informazioni ed i costi riguardanti il servizio.
Attenzione : Webx.it non è un servizio di helpdesk “gratuito” a cui chiedere informazioni.
Fonti : Selezionare tutti i tags WordPress, Selezionare i tags WordPress, Mysql Seletct tags tags WordPress, Mysql selezionare tutti tags WordPress, tags WordPress select, creare una select per selezionare tags WordPress





