Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

[...] on excerpts - can they be made clickable links?

Old Feb 7, 2009, 04:44 PM
25 posts · Feb 2009
[...] on excerpts - can they be made clickable links?


Is it possible to arrange thing such that the "[...]" that shows at the end of all excerpts is a clickable link to the full post?

Also, can we change the "..." to different text here?

Thanks in advance.
Old Feb 8, 2009, 01:33 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
I think this plugin may be able to do that but I am not sure http://wordpress.org/extend/plugins/advanced-excerpt/

Or use the "More Tag" in your posts. I understand that you want it automated for all posts but I have idea for that right now
Old Feb 12, 2009, 08:00 PM
MacMyDay's Avatar
23 posts · Feb 2009
Hey HalfWayThere & Flynn -

I tried the Advanced Exceprt, while it has nice features, it doesn't allow linking of the ellipsis. But did find this explanation and per the post has been tested on WP 2.7.x


I imagine it will work with Altahualpa.
Old Feb 12, 2009, 09:36 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
Good find, I have not thought about filters or that there would be one for the excerpt. You can add that code to the bottom of atahualpa/functions.php. It's important to not introduce any blank space or lines before or after the code. Add it tightly to the bottom of functions.php. (Spaces and blank lines INSIDE the opening and closing PHP tags are o.k., just not outside). The functions.php must end with a closing ?> and not have a space or blank line after that.
Old Feb 12, 2009, 11:49 PM
MacMyDay's Avatar
23 posts · Feb 2009
Excellent Flynn. That was the key. the ?>

Though this code allows you to link to the complete post from the excerpt, by eliminating or replacing the ellipsis the truncated text seems to hang... so I modified it a bit so that the ellipsis appears first then 'read more' eliminating the line break and making it seem more cohesive with the text of the excerpt. This is my implementation... this works for me and anyone else can modify this code...
//function to replace invalid ellipsis with text linking to the post  
function elpie_excerpt($text)  
   return str_replace('[...]', '<a href="'. get_permalink($post->ID) . '">' . ' [&hellip; Read More]' . '</a>', $text);  
add_filter('the_excerpt', 'elpie_excerpt');?>
I think this just gets pasted at the end of functions.php without any linebreaks or spaces. worked for me!

Last edited by MacMyDay; Feb 13, 2009 at 12:02 AM.
Old Mar 8, 2009, 10:21 AM
Shepherd Jim's Avatar
Shepherd Jim
301 posts · Feb 2009
Bristol, midcoast Maine USA
My wife wants to accomplish the same thing as MacMyDay = make the automatically inserted ellipsis "[...]" be clickable -- linking to the full post on a single post page.

I'm comfortable editing the functions.php file but am concerned that this is a change I will have to go back in and re-do every time the theme is updated/re-installed ...that is the case, right?

Is the mod to functions.php still the best way to perform this magic?

BTW -- how is it determined how long the "automatic excerpt" is? Can/could that be modified.

I've tried to convince Pam that she should start using the "More" button, but she's gotten very used to having the excerpt process happen without input from her.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is it possible to have multiple clickable links in the Header or other graph Eric Bobrow Header configuration & styling 18 Mar 31, 2010 04:00 PM
How to edit links widget or how to have links in sidebar of page? Joelb53 Sidebars & Widgets 1 May 6, 2009 03:52 AM
Trying to insert multiple clickable images above my Logo whatsmytruth Header configuration & styling 1 May 1, 2009 12:07 PM
Made the change, now having widget problem paulae New Versions, & Updating 2 Apr 1, 2009 07:41 PM
Making clickable? gesman Header configuration & styling 6 Feb 8, 2009 01:48 PM

All times are GMT -6. The time now is 02:50 PM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.