Home › Forum › Problemi Vari con WP › Visualizzazione Tags
-
AutorePost
-
-
10 Dicembre 2008 alle 18:55 #8721msgraphicitPartecipante
Qual’è il codice per far visualizzare alla fine dell’articolo un tot di tag separati da virgola?
grazie.
-
10 Dicembre 2008 alle 19:08 #60026wollyAmministratore del forum
<?php the_tags('Tags: ', ', ', '
'); ?> -
10 Dicembre 2008 alle 19:10 #60027msgraphicitPartecipante
Grazie, posso farne vedere solo 9 o solo quelli che entrano su una riga?
-
10 Dicembre 2008 alle 19:23 #60030SteveAglAmministratore del forum
http://codex.wordpress.org/Template_Tags/the_tags
Ma siccome elenca i tag di un dato articolo non è prevista una limitazione al numero dei tag mostrati anche perchè non avrebbe senso, anche perchè non puoi sapere quale sia il numeromassimo di tag visualizzabili su una riga perchè non hai certezza della dimensione caratteri, della lunghezza dei singoli tag etc.
-
10 Dicembre 2008 alle 19:30 #60031msgraphicitPartecipante
si ok ma non c’è modo di limitarli. cioè ne metto 30 volgio che si vediano solo i primi 9
Aiuto
-
10 Dicembre 2008 alle 19:36 #60033SteveAglAmministratore del forum
Quale parte di: non è prevista una limitazione al numero dei tag mostrati non è chiara?
-
10 Dicembre 2008 alle 19:42 #60034msgraphicitPartecipante
Non ci posso credere che in progetto Opne source nessuno ha mai avuto questa stessa necessita.
magari non la conosci, ma non per questo non esiste!
-
10 Dicembre 2008 alle 19:46 #60035wollyAmministratore del forum
Ascolta bene, quella è la funzione per mostrare i tag di wordpress.
Nessuno ti vieta di modificartela come vuoi.
Il fatto che sia open source non significa che esista qualsiasi cosa che ad uno viene in mente.
E’ una tua esigenza, tra l’altro assurda visto che i tag servono per indicizzare i post e se non li mostri non servono a nulla a meno che tu non li metta utilizzando un altro programma di SEO.
Quindi ti armi di pazienza ti modfichi la funzione come vuoi tu e nel perfetto open source poi la pubblichi cosଠse qualcun’altro avrà questa necessità la troverà .
-
10 Dicembre 2008 alle 19:51 #60036SteveAglAmministratore del forum
Oddio mi occupo di WP dal 2005, seguo praticamente tutti i blog tecnici su WP inglresi che siano significativi per il programma prima di risponderti ho cercato se esiste un plugin sul repository ufficiale dei plugin di WP. Ci sono delle motivazioni tecniche per le quali se tu fai una cosa che mostra alcuni tag solo su una riga (dandole il numero di tag, senza saperne la lunghezza) ti dimostro che il tuo template sballerà lo stesso… però se la trovi fammi un fischio. Io chiudo qua.. oltre non so che dirti!
-
11 Dicembre 2008 alle 15:40 #60075msgraphicitPartecipante
Ovviamente se riesco a farlo non macherò di pubblicarla.
Vi ringrazio per l’aiuto.
Una domanda? è un forum di supporto ho di critica e spettegolamento?
-
11 Dicembre 2008 alle 15:46 #60080SteveAglAmministratore del forum
Se un suggerimento ed indicazione di come non sia possibile fare quello che chiedi lo consideri critica e spettegolamento.. abbiamo idee diverse su tali concetti… se il nostro forum non ti piace puoi rivolgerti a quello inglese.
PS: quando riesci a fare quel che chiedi considererai critica e spettegolamento l’esempio in cui ti mostrerò come non possa funzionare in tutti i casi possibili e con qualsiasi browser?
-
11 Dicembre 2008 alle 15:47 #60081wollyAmministratore del forum
puoi scrivere in italiano per favore?
-
11 Dicembre 2008 alle 16:10 #60085msgraphicitPartecipante
No! considero critiche è spettegolamento, il porsi in maniera polemica e presuntuosa ad una domanda, ad arrogarsi il diritto di scegliere cosa a senso e cosa no.
poi wolly, mi sei veramente scaduto, se stiamo a correggere i vostri errori ce ne andiamo domani mattina…
CMQ se è cosi che la pensate… non mi resta che impietosirmi.
PS: ma ti stai riferendo al fatto di non far scendere i tags a 2 righe? L’avevo butta li come esempio e subito esclusa, ha me va bene anche solo far vedere un tot di tags ke dico io.
-
11 Dicembre 2008 alle 22:22 #60093gollum1Partecipante
una possibile soluzione:
usa le funzioni ob di php…
catturi l’output della funzione che visualizza i tag, ci fai tutto quello che vuoi e poi pubblichi il risultato dell’elaborazione.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.