Excerpt's read more "[...]" link to the post | General - Subscribe2 HTML Support Forum | Support | Semper Plugins

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Excerpt's read more "[...]" link to the post
March 24, 2013
8:02 pm
Avatar
tammy
Member
Guests
Forum Posts: 7
Member Since:
March 4, 2013
sp_UserOfflineSmall Offline

Hello there. Is there a way to make the email excerpt’s automatic read more “[…]” link to the full post on the website instead of just showing up as “[…]”??? Similar to how you can change Wordpress’s default “[…]” to say “read more” and link to a post by editing functions.php with this:

function new_excerpt_more( $more ) {
return ‘ Read More‘;
}
add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );

(code is from: http://codex.wordpress.org/Function_Reference/the_excerpt).

March 25, 2013
8:46 am
Avatar
Matthew Robinson
UK
Admin
Forum Posts: 453
Member Since:
December 13, 2012
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

March 25, 2013
5:58 pm
Avatar
tammy
Member
Guests
Forum Posts: 7
Member Since:
March 4, 2013
sp_UserOfflineSmall Offline

works perfectly! thank you…

March 26, 2013
7:42 am
Avatar
Matthew Robinson
UK
Admin
Forum Posts: 453
Member Since:
December 13, 2012
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

March 27, 2013
6:17 pm
Avatar
tammy
Member
Guests
Forum Posts: 7
Member Since:
March 4, 2013
sp_UserOfflineSmall Offline

Can I add on to this with another similar question or do I need to start a new topic?

I just noticed that the solution above works great when I have the “read more…” appear automatically based on the excerpt setting of 55 words; however, when I insert the WP “read more” tag in order to make the excerpt cut off exactly where I’d like it to cut off, I don’t see a […] or “Read More…” with a link in my email digest. It just cuts off with no text to click or follow through. Any suggestions on how to make the “read more tag” display a “Read More…” with post link in my digest email?

March 28, 2013
4:27 am
Avatar
Matthew Robinson
UK
Admin
Forum Posts: 453
Member Since:
December 13, 2012
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

March 28, 2013
11:38 am
Avatar
tammy
Member
Guests
Forum Posts: 7
Member Since:
March 4, 2013
sp_UserOfflineSmall Offline

Hello again :) When I copy that same code and insert it before the “} else {” then attempt to send myself a preview email this warning is popping up in WordPress:

Warning: array_push() [function.array-push]: First argument should be an array in /home/content/86/2049386/html/lynette-2013-preview/wp-content/plugins/subscribe2_html/classes/class-s2-core.php on line 1562

This is what my code in core-s2-core.php looks like (pasted below). I’ve been staring at it for a long time trying to solve this, but my coding skills beyond html/css are basic. Do you know where the error is coming from???

Thanks again and again!

( !empty($post->post_excerpt) ) ? $excerpt = $post->post_excerpt : $excerpt = ”;
if ( ” == $excerpt ) {
$excerpt = apply_filters(‘the_content’, $post->post_content);
// no excerpt, is there a ?
if ( false !== strpos($post->post_content, ‘‘) ) {
list($excerpt, $more) = explode(‘‘, $excerpt, 2);
if ( function_exists(‘strip_shortcodes’) ) {
$excerpt = strip_shortcodes($excerpt);
}
// balance tags then strip leading and trailing whitespace
$excerpt = trim(balanceTags($excerpt, true));
$link = “get_tracking_link(get_permalink($post->ID)) . “\”>Read more…“;
array_push($words, $link);

} else {
if ( function_exists(‘strip_shortcodes’) ) {
$excerpt = strip_shortcodes($excerpt);
}
$words = explode(‘ ‘, $excerpt, $this->excerpt_length + 1);
if ( count($words) > $this->excerpt_length ) {
array_pop($words);
$link = “get_tracking_link(get_permalink($post->ID)) . “\”>Read more…“;
array_push($words, $link);
$excerpt = implode(‘ ‘, $words);
$excerpt = trim(balanceTags($excerpt, true));
}
}
}

March 28, 2013
12:47 pm
Avatar
Matthew Robinson
UK
Admin
Forum Posts: 453
Member Since:
December 13, 2012
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

March 28, 2013
2:34 pm
Avatar
tammy
Member
Guests
Forum Posts: 7
Member Since:
March 4, 2013
sp_UserOfflineSmall Offline

that works perfectly! thank you.

Forum Timezone: America/New_York

Most Users Ever Online: 964

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 35

Members: 20406

Moderators: 1

Admins: 8

Forum Stats:

Groups: 4

Forums: 28

Topics: 1940

Posts: 8330

Newest Members:

Nicolas Mourer

Moderators: Dawa Liu

Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve KlasenArnaud BroesAshish Ravi

[i]
[i]
Skip to toolbar