Visualizzazione 2 filoni di risposte
Visualizzazione 2 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Plugin e temi di WP › Inserire link “continua a leggere”
Intanto BuonFine pomeriggio.
Prima nel mio blog usavo i ltemplate a pagamento OneTheme, mi paiceva solo dopo h ovisto ch emolti lo usavo è lo tolto. Questo tema ha ancora oggi una funione che per me era assai utile: quando scrivevi un articlo nella parte inferiore destra veniva inserito un link con scritto sopra “Continua a leggerel ‘articolo” cosଠche l’ utente inesperto se doveva leggere l’ articolo e non sapeva che dove clcicare sul tiotlo del post poteva cliccare su quell’ apposito collegamento.
Volevo chiedervi c’è da inserire un codice php apposito nel file index.php oppure posso usare un plugins? Se si come si chiama?
Ringrazio in anticipo
Up… Interessa anche a me!
E’ una stringa PHP, non presente in tutti i temi di wordpress.
Per esempio, nel template di wp default, si presenta cosà¬:
<div class="entry">
<?php the_content(__('Read the rest of this entry »', 'kubrick')); ?>
</div>
però appare (credo) soltanto quando è inserito questo tag:
<!–more–> dove si vuole, all’interno dell’articolo, che appaia quella scritta.
Ovvero, tutto il testo che seguira questo tag <!–more–>, sarà leggibile solo cliccando su “Leggi il resto di questo articolo…”.
Questa è un’altra soluzione:
<?php the_content(“Continue reading ” . the_title(”, ”, false)); ?>
FONTE:
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0