Home › Forum › Plugin e temi di WP › Dubbio nel modificare una stringa php
-
AutorePost
-
-
16 Aprile 2011 alle 9:08 #17573bacoPartecipante
Salve ragazzi so che è un po’ OT (ho provato a contattare l’autore ma non mi risponde) come argomento ma magari per gli utenti un po’ navigati è intuitiva come cosa.
Ho scaricato un plug in di WordPress Category Icons che permette di avere delle icone per le proprie categorie.
Mettiamo caso che uno abbia la categoria NBA e quella Calcio. Sotto gli articoli utilizzando questa stringa:
<?php if (function_exists(‘get_cat_icon’)) get_cat_icon(‘use_priority=true’); ?>
Si visualizza una icona per la categoria alla quale appartiene l’articolo.
Ora nelle opzioni del plug in è possibile scegliere due icone per categoria. Una grande ed una piccola. Di default il plug in usa l’icona piccola
boolean small Use the small icon. Default : true.
http://www.category-icons.com/2008/03/function-get_cat_icon/
Ora se io volessi usare l’immagine grande basterebbe modificare la stringa cosà¬:
<?php if (function_exists(‘get_cat_icon’)) get_cat_icon(‘small=false’, ‘use_priority=true’); ?>
E fin qui ci sono
Il problema è che nelle pagine categoria (quando uno clicca appunto sulle icone) si utilizza un’altra stringa:
<?php if (function_exists(‘get_cat_icon’)) get_cat_icon(“cat=”.get_cat_ID( single_cat_title(“”, false) ));?>
Dove devo (se posso mettercelo) posizionare small=false in questa stringa?
Scusate ma son proprio alle prime armi e andando a tentativi non ho risolto nulla. Magari per qualcuno più navigato è semplice da risolvere
Buon weekend a tutti.
-
16 Aprile 2011 alle 10:16 #83471Luke89Partecipante
<?php if (function_exists(‘get_cat_icon’)) get_cat_icon(“small=false&cat=”.get_cat_ID( single_cat_title(“”, false) ));?>
intendi cos�
-
16 Aprile 2011 alle 13:25 #83482bacoPartecipante
Grazie mille intendevo proprio cosà¬, funziona:)!
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.