Hi!
I've installed your newest release and figured that there are some problems with the excerpt-filter. In my archive-Template I use the_excerpt and normally the manually written excerpt is shown here per post. With your newest plugin activated that excerpt is shown TWICE and then trimmed to a specific amount of words I guess. I had to delete the line add_filter('get_the_excerpt', 'add_series_meta_excerpt',1); in the orgSeries.php to make everything work again. Maybe you can take a look at that?
Excerpt problem with newest plugin version 2.1
(16 posts) (7 voices)-
Posted 5 months ago #
-
I had exactly the same problem. Thanks for the workaround though!
Posted 5 months ago # -
I've added this report to trac and will get to it as soon as possible. (dang and I thought I had caught all the bugs before this release...)
Posted 5 months ago # -
Darren,
I had the same problem with the excerpt, but the work-around resolved it. However, there's another issue that's still there. I use Related Materials to show excerpts of other articles in a middle column on my page. When viewing an article in a series, *every* excerpt shown in the middle column has "Part 1 of 4 in the series The History of The HotLine" showing at the beginning even when they are -not- in that series.
Here's a link to where you can see the problem: http://mblaisdell.com/?series=288
And another link where you can see how later articles in the series show the same problem, except that the message now is: Part 4 of 4 in the series ...
My webmaster was stumped -- any suggestions?
--mikael
Posted 5 months ago # -
Mikael,
The problem is related to the hook that Organize Series uses for inserting series related information and how your theme uses the WordPress hooks.Try this (although it may not work as expected). Try commenting out line 368 in the orgSeries.php file. To comment it out you just put two backslashes
//in front of the line so you end up with this:
//add_filter('get_the_excerpt', 'add_series_meta_excerpt', 1);Posted 5 months ago # -
Darren,
Thanks for the reply, and for the clarity of telling this non-programmer how to do a comment-out!
I did use the workaround (Commenting out - //add_filter('get_the_excerpt', 'add_series_meta_excerpt', 1);) per onkelandy's original post. That step cleared up the doubled excerpt problem on the main page, but it hasn't helped with the problem of posts not in a series being mistakenly listed in their excerpts as if they were as I described above.
Forgive if this is a dumb question, but is there more than one instance of that line of code in the file? My editor doesn't show the line numbers, so I just read through the file until I found an instance of near the very bottom of the code.
It would be okay with me if post excerpts didn't include a reference to being a part of a series. I think that having a listing of the series table of contents at the bottom of a member post, plus the navigational listing of the whole that I have in another column is enough. Is there a way I could turn off the addition of series membership in excerpts?
--mikael
Posted 5 months ago # -
Actually I think I know what's happening now. I have a feeling your theme is calling
<?php the_content(withsomestuffhere) ?>rather than `<?php the_excerpt() ?>Posted 5 months ago # -
Darren -- and any others that may have this problem too:
The problem has been found -- it's apparently not in my theme, but in the way another plugin works. The plugin is Related Posts, and my webmaster is looking for a different plugin to use that php's the exerpt instead of the content.
--mikael
Posted 4 months ago # -
I deactivate all plugins except Organize Series 2.1.1 and I still get the problem so I think it's not a plugin conflict.
The first thing I noticed was that the get_the_excerpt function returns a value, doesn't echo, but this filter was echoing. So I changed that.
And it was apparently getting called more than once in certain get_excerpt() situations like searches, so I had to filter out the repeated text.
And it wasn't getting handled well with add_filter set to 1, so I removed that parameter. (It could be that I need to have it run before the the_content add_series_meta filter, in which case I'd change one to a 10, the next one to 11.
I don't pretend that this workaround will fix all, but here's what I changed:
At line 205, I changed the add_series_meta_excerpt function to:
function add_series_meta_excerpt($content) {
global $org_domain,$post;
if ( is_single() ) return;
$settings = get_option('org_series_options');
remove_filter('the_content','add_series_meta');
if($settings['auto_tag_seriesmeta_toggle']) {
if ($series_meta = wp_seriesmeta_write(true)) {
$msg = strip_tags(str_replace('%postcontent%', '', $series_meta));
if ($msg && substr($content,0,strlen($msg))==$msg) $content = substr($content,strlen($msg));
$addcontent = $content;
$content = str_replace('%postcontent%', $addcontent, $series_meta);
}
}
return $content;
}
And I changed the add filters get_the_excerpt code at the bottom to:
add_filter('get_the_excerpt', 'add_series_meta_excerpt');Hope this helps someone 'til a more elegant solution can be found.
Rich
Posted 4 months ago # -
Thanks Rich for posting a possible solution for some of OrgSeries users. It will be a good stopgap until I find the time to take a closer look at it :)
Posted 4 months ago # -
I just wanted to post that I got a similar issue with the_excerpt() call always returning an automatic excerpt rather than the custom one I had written. The workaround with commenting out line 368 worked for me. Cheers!
Posted 4 months ago # -
I just released Organize Series 2.1.2 that will hopefully fix the_excerpt problems. In my tests there doesn't seem to be a problem but now that it's in the wild we'll see. Feel free to try and report back here folks!
Posted 4 months ago # -
Updated plugin and the bug has gone. Good work!
Posted 4 months ago # -
I upgraded the plugin with a lot of hope... alas... no use, edit.php still comes blank
Posted 4 months ago # -
Rajupp,
this thread is for the_excerpt problem - if you have another bug you'll have to start a new thread.The edit.php coming up blank has been reported by VERY few users and I have not been able to reproduce. I suspect it is a conflict with another plugin. That is all I will say on that in this thread.
Posted 4 months ago # -
@scottgoodacre Thanks for reporting the success on your end :)
Posted 4 months ago #
Reply
You must log in to post.
not resolved