Risposte nei forum create
-
AutorePost
-
testinawebPartecipante
grazie mille, provo!
buona giornata
testinawebPartecipanteho scritto questo ma ancora arrivo sulla index.php e non so come far puntare ad un’altra pagina.
add_action(‘generate_rewrite_rules’, ‘add_rewrite_rules’);
add_filter(‘query_vars’, ‘query_vars’);
add_filter(‘init’,’flushRules’);
function add_rewrite_rules( $wp_rewrite ) {
$new_rules = array(‘list/(.+?)/?$’ => ‘index.php?list=$matches[1]’);
$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
}
function query_vars($public_query_vars) {
$public_query_vars[] = “list”;
return $public_query_vars;
}
function flushRules(){
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
testinawebPartecipantein effetti ci avevo pensato, ma:
tutto quello che viene dopo “lista/” saranno variabili tipo: http://www.dominio.it/lista/var1/var2/var3/var4
la mia “pagina lista” deve essere in grado di ricevere la chiamata in ogni caso e mi sembra che il modrewrite di wordpress sia la soluzione… sbaglio?
testinawebPartecipanteche nel file del plugin c’è un errore… ti conviene cambiare plugin
o
vai qui: http://twitter.com/about/resources/tweetbutton ti fai il bottone e incolli il codice da qualche parte nel tuo template
testinawebPartecipanteentri nell’area di amministrazione -> vai su aspetto -> vai in editor -> sulla colonna di destra trovi l’elenco di tutti i file riguardanti il tuo tema e la possibilità di modificare il codice.
penso che tutto questo avvenga se hai un tua installazione, se arrivi da wordpress.com dubito tu possa modificare il template il che fignifica che devi inserire un widget con il codice html che ti hanno dato.
cia’
m
-
AutorePost