Plugin Author
WPKube
(@wpkube)
Hi @cruisereiziger
For some reason our plugin thinks the current active post is the last post.
The “read more” link is also wrong, points to that last post. But the way we get the URL is simply by calling a WordPress function get_permalink() which by default returns the URL of the current active post.
But it’s weird that it only happens for 2 of all the posts shown on the page.
This is something that needs a bit of code to be debugged and figure out what’s going on. Do you have some experience with editing PHP files? If you do I can let you know what’s needed.
Hi,
Yes, I can edit PHP files with the snippet plugin, so that won’t be a problem.
Plugin Author
WPKube
(@wpkube)
Hi @cruisereiziger
In wp-content/plugins/advanced-excerpt/class/advanced-excerpt.php on line 371 you should see:
return trim( force_balance_tags( $out ) );
Above that line add the following:
$out .= get_the_ID();
Basically what that does is add the current post ID to the end of the excerpt. So after you add it reload the page and check which numbers are added at the end on the excerpt that are wrong.
Let me know if that ID is the ID of the latest post or if it matches the correct posts.
Hi, unfortunately its the ID of the latest post.
Plugin Author
WPKube
(@wpkube)
Hi @cruisereiziger
That’s the ID our plugin receives for the excerpt generation. It’s the WordPress function which returns the ID of the “current post”.
So the issue isn’t with our plugin, it’s most likely the theme. It’s the paid version of ColorMag theme, correct? You’ll need to contact their support and ask them to check why get_the_ID() returns the wrong ID in there.
Hi,
Thanks for your answer. Yes, it’s the paid Pro version, so I will contact them!
Plugin Author
WPKube
(@wpkube)
You’re welcome, let me know it goes.