Hi everybody, is it possible to change the excerpt to a paragraph instead of the number of words?
I'm developing a news website and I wanted to show the lead (first paragraph), instead of a defined number of words...
Hi everybody, is it possible to change the excerpt to a paragraph instead of the number of words?
I'm developing a news website and I wanted to show the lead (first paragraph), instead of a defined number of words...
Yes, provide an explicit excerpt for the post in the post editor's optional excerpt field, rather than letting it display an automatic excerpt. See http://codex.wordpress.org/Function_Reference/the_excerpt
Yes, I already changed the excerpt length to 30 words, but I want to display a whole paragraph. Because the number of words in a paragraph vary...
I discovered that an alternative is using the the_content() instead of the_excerpt, but the more_tag is not working...
wordpress codex suggests using this as a solution:
<?php
global $more; // Declare global $more (before the loop).
$more = 1; // Set (inside the loop) to display content above the more tag.
the_content("");
?>
however I can't understand where to place that line of code...
can somebody help me?
To clarify more what I was explaining. You can specify exactly what you want to show as your excerpt (be it a sentence, a couple of sentences, or a full paragraph) by manually entering the text you want as your excerpt into the Excerpt field located under the post edit box. Please see: http://codex.wordpress.org/Excerpt
Note: The Excerpt field is hidden by default if it has not been used before. Can be enabled in the “Screen Options”
You must log in to post.