Hi there,
I have a page that will list news articles. To cut down on the page's length, I only want to display a teaser (the first 200 words / 600 letters of the article) and then display a "more..." link, that, when clicked, will expand the rest of the article in a jQuery/Javascript way. Now, I've all that figured out and even found th...
Here is an excerpt function:
function excerpt($text, $phrase, $radius = 100, $ending = "...") {
270 if (empty($text) or empty($phrase)) {
271 return $this->truncate($text, $radius * 2, $ending);
272 }
273
274 $phraseLen = strlen($phrase);
275 if ($radius < $phraseL...
I'd like to display 10 articles from "featured" category. Only the first should have title and excerpt, the rest 9 only titles. How'd I do that?
Many thanks for your help.
...
It introduced a lot of non-closed tags like below:
<div>
<table>...</table>
The </div> is truncated by code like this:
(strlen($row['body']) > 200 ? substr($row['body'],0,200) . '...' : $row['body'])
And the layout of the whole page is broken,how to deal with it?
...
Hey,
This is the mock up i have
http://img697.imageshack.us/img697/3172/featuresb.jpg
Each section will be an excerpt of a post that has a certain tag.
Is there any way of doing this so a client doesnt have to touch and tags or code like that.
Thank you
...
Hello,
How to Check whether the_excerpt() function is called in a particular page example in a archive page.
The thing is i want to know whether the_excerpt() function is used to display the content or whether the_content() is used to display the content in archive/category pages.
How to check this. Is there any conditional tag
...
Wordpress' documentation suggests adding the following to functions.php to enable what I want to do:
function new_excerpt_more($post) {
return '<a href="'. get_permalink($post->ID) . '">' . 'Read the Rest...' . '</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
As per: http://codex.wordpress.org/Function_Reference/the_excer...
On our site we have a speakers page for courses. Main post has the bio and I have added a sidebar for each post to show picture and the excerpt. The excerpt only contains links to websites and their social media sites. The links in the excerpt don't seem to be clickable. http://www.socialmediaacademy.org.uk/index.php/course-speakers/ Is ...
I'm trying to get this link to look like this:
Comment on this show >> | Listen to this show >>
Where "Comment on this show >>" gets populated properly with its permalink.
"Listen to this show >>" link should be populated with that posts 'Listen Now' custom field value.
function holylandmoments_comment_link() {
return ' <a class="rea...