Visualizzazione 4 filoni di risposte
Visualizzazione 4 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › Come avere un previw degli articoli come nella pagina archivi?
Salve, vorrei sapere come poter avere, in modo automatizzato, la preview degli articoli allo stesso modo in cui è nella pagina ARCHIVI.
E se si può settare da qualche parte la dimensione del preview.
Posso farlo da qualche funzione o file php?
Grazie.
Tradotto significa che vuoi un estratto al posto del contenuto intero?
Si, perchè tradotto? non era chiaro come lo avevo scritto?
In pratica quando vado in categoria, ho proprio un “estratto” dei post pubblicati. Il tutto automaticamente, e vorrei poterlo fare anche nella home page.
Non molto, ho dovuto spremere le meningi.
Anche perché è una domanda fatta almeno una volta alla settimana, e ognuno usa i modi più fantasiosi per farla
Quindi una veloce ricerca sul forum ti avrebbe detto che basta cambiare là dove c’è scritto the_content con the_excerpt
Fonte originale:
Ma se io volessi fare di testa mia? cioè dare ad ogni articolo uno stile “max-height”, solo che mi servirebbe sapere in che URL mi trovo, ma non va con $_SERVER[“PHP_SELF”] e nemmeno con blogInfo(‘url’). Visto che uso i permalink, mi servirebbe sapere in quale “permalink” mi trovo, come ad esempio viene scritto nel tag LINK REL=”canonical”.
Praticamente mi servirebbe sapere quando mi trovo in una pagina in cui vengono elencati tutti o più post e non nel singolo.
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0