Risposte nei forum create
-
AutorePost
-
TremisferoPartecipante
Ah! Come faccio l’upgrade che non c’è il pulsante “Aggiorna!” nel backend?
TremisferoPartecipanterisolto… bisognava scrivere
$advancedexcerpt->filter($the_excerpt,5, 1, ‘…’, null)
e non
$advancedexcerpt->filter(the_excerpt(),5, 1, ‘…’, null)
come ovunque diceva di fare
26 Settembre 2008 alle 15:55 in risposta a: Creare estratti dagli articoli di varia lunghezza #58149TremisferoPartecipanteMa non riesco a capire come devo richiamare la funzione che crea il riassunto personalizzato inline.
Sul txt dice di usare questa stringa:
<
$advancedexcerpt->filter($text, $length, $use_words, $ellipsis, $allowed_tags)`
ma come devo fargliela tirare fuori?
26 Settembre 2008 alle 15:30 in risposta a: Creare estratti dagli articoli di varia lunghezza #58148TremisferoPartecipanteCavolo ma hai prorpio ragione. Questo plugin lo usavo ma non mi ero accorto che si potessero definire dei parametrinel tag che richiama l’excerpt.
TremisferoPartecipanteL’uso del plugin è melgio evitarlo a mio parere perchè ci si lega a uno script esterno che non è detto sarà aggiornato con WP.
Si l’idea del css l’avevo avuta ma dovrei rendere hiddati tutti i div che non mi servono.. è un po’ macchinoso come sistema. E se puoi volessi cambiare la disposizione di alcuni elemnti del layout?… mmmm è una soluzione, ma non la soluzione.
TremisferoPartecipanteniente.. allora , come al solito, mi dovrò duplicare la funzione the_excerpt modificandola.
Grazie per gli aiuti!
TremisferoPartecipantemmm… il fatto che siamo arrivati entrambi alla stessa conclusione fa riflettere.
TremisferoPartecipanteNon posso, perchè altrimenti non ottengo quel che voglio. Voglio poter decidere quanti caratteri visualizzare di uno stesso articolo, in forma di excerpt.
Qualcosa del tipo:
ARTICOLO
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<?php the_excerpt(‘Continua’ ‘words=20’); ?>
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim …
<?php the_excerpt(‘Continua’ ‘words=10’); ?>
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod…
TremisferoPartecipantemmm non fa al caso mio. Io non ho bisogno di creare riassunti scritti. Voglio dei risassunti automatici che prendano i primi caratteri dell’articolo Ma vorrei la possibilità di scegliere quanti caratteri visualizzare e quindi ottenere riassunti della lunghezza che voglio su uno stesso articolo. Perchè a seconda di dove lo visualizzo nel layout ho bisogno che sia più o meno lungo.
23 Settembre 2008 alle 15:25 in risposta a: Definire delle variabili e riutilizzarle in un tema #58078TremisferoPartecipanteHai ragione grazie!
-
AutorePost