Inserire automaticamente del testo dopo ogni post
Da AldoWiki.
In WordPress è possibile inserire in modo automatico del testo dopo ogni post. Per farlo aggiungere queste righe nel proprio functions.php:
function insertFootNote($content) { if(!is_feed() && !is_home()) { $content.= "<div class='subscribe'>"; $content.= "<h4>Enjoyed this article?</h4>"; $content.= "<p>Subscribe to our <a href='http://feeds2.feedburner.com/WpRecipes'>RSS feed</a> and never miss a recipe!</p>"; $content.= "</div>"; } return $content; } add_filter ('the_content', 'insertFootNote');
Vanno personalizzate le righe con il tag h4 e p.
Fonte: WP Recipes