Forum Replies Created
-
AuthorPosts
-
LanceHillierParticipant
Hi Brad,
I found your code here Force a Read More Link on all Post Excerpts in WordPress
Which is the best yet but it does put the 'read more' like so:
Recently I’ve been thinking a lot about what holds us back and the things that prevent us from reaching our goals or taking the risks to move our lives forward. I have been guilty of holding myself back many times, so here are my thoughts and what I’ve lea
read more
Is there a way to place the 'read more' link onto the end of the excerpt??
LanceHillierParticipantOk, this code works...
function all_excerpts_get_more_link($post_excerpt) {
global $post;return $post_excerpt . ' <p>' . __('read more') . '</p>';
}add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');
but places the 'read more' on a new line like so:
Recently I’ve been thinking a lot about what holds us back and the things that prevent us from reaching our goals or taking the risks to move our lives forward. I have been guilty of holding myself back many times, so here are my thoughts and what I’ve lea
read more
I would like this on the end of excerpt like normal, I'm getting closer!
LanceHillierParticipantI have this code that works...
// Changes the behaviour of manual excerpts to include read more link
function all_excerpts_get_more_link($post_excerpt) {
return $post_excerpt . ' ... ID) . '">Read more';
}
add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');But throws this error...
Notice: Undefined variable: post in /Volumes/Design/Website_Design_Jobs/CURRENT JOBS/LOCAL SERVER/writeabetterlife2/wp-content/themes/magazine-pro/functions.php on line 207
Notice: Trying to get property 'ID' of non-object in /Volumes/Design/Website_Design_Jobs/CURRENT JOBS/LOCAL SERVER/writeabetterlife2/wp-content/themes/magazine-pro/functions.php on line 207
Recently I’ve been thinking a lot about what holds us back and the things that prevent us from reaching our goals or taking the risks to move our lives forward. I have been guilty of holding myself back many times, so here are my thoughts and what I’ve lea … Read moreLanceHillierParticipantJust to add to this, I am adding my own excerpt from the editor screen
LanceHillierParticipantThanks Brad,
As soon as I change the featured post widget to show excerpt it removes the 'read more..', by the looks of this code its supposed to add this link back in but it doesn't seem to want to do that for me.
I have just tried your code, and the one I found on wordpress.org.
I also the genesis theme settings to display 'entry excerpts' as per your post with no luck.
not sure, will keep playing!!
LanceHillierParticipantYep sorry should have said the featured content widget, yes the content limit, and the excerpts. I'm trying to remove the first couple of words, it's the Authors name which I put in the editor. I can do it by using the excerpt option but then the read more button is removed( I would like to keep this the way it is) and the content/content limit just grabs everything from the start.
LanceHillierParticipantBrad, Thank you!!!
I've got it working thanks to your suggestions above, thanks for taking the time to respond, I've been on that one for a few weeks:-)
Cheers,
Lance.LanceHillierParticipantThanks Brad,
The do_shortcode won't work inside the function, and because the contact form is inside the column class I can't break the html to add the php...
Cant seem to get it to work that way anyway, I'm probably not doing it the way its supposed to be done and might have to come at it from another angle.
I'm not sure what the contact forms function call is, but I'll look into that now.
Thanks for the reply mate!
Lance.LanceHillierParticipantVictor,
You seem to be across everything, thanks for your time mate, your answer has I think helped me find the right path to a solution, and opened up another tool for my box. I have found this code using the above tut which I think has something to do with it!!!
.home-middle .widget,
.home-top .widget {
float: left;
padding: 0 2.8%;
width: 33.33333333333%;
}.home-middle .widget:nth-of-type(3n+1),
.home-top .widget:nth-of-type(3n+1) {
clear: left;
}Cheers,
Lance.LanceHillierParticipantHi Christoph,
Thanks for your reply and Link mate, I have just submitted one on your advice, I also found the 'fetch as google' in the webmaster tools and submitted some url's that way, I now notice if I go 'site:handoffaith.com' the site does come up, which is promising, but nothing yet when I search straight from google which i'm hoping is just a time thing. But yeah, getting on top of the google pile is a whole other ball game I'm sure.
So much to learn!!
Thanks again,
Lance. -
AuthorPosts