Please update the plugin. It hasn’t been updated for over 2 years.
Also, a cache functionality would be great, it would reduce the server load on websites with large number of posts.
]]>Please patch the plugin.
The Similar Posts – Best Related Posts Plugin for WordPress is vulnerable to Stored Cross-Site Scripting via an unknown parameter in versions up to, and including, 3.1.6 due to insufficient input sanitization and output escaping. This makes it possible for attackers authenticated as an administrator to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
]]>Hi, I want to do my shortcode ([cnt-year] in the screenshot) in the similar posts output. As you can see the shortcode doesn’t work there. How can I fix that? Screenshot – https://imgur.com/a/rXAsCmT
Best regards.
]]>Hi, i would like to prevent the whole “Similar posts” block from inserting itself into one post. How can i achieve that?
Best regards.
]]>any fix for this – https://www.screencast.com/t/EYNRsaZ3
]]>It appears possible to include custom post types by inserting a line line
function where_show_pages($show_pages, $show_attachments='false') {
if (function_exists('get_post_type')) {
$typelist = array();
$typelist[] = "'my_custom_type'";// <-- insert post type
Caveat; I don’t know if it breaks anything but seems to work for me and the logic seems relatively straightforward there. Thought maybe it will help someone else or post types to include could become an integrated option?
]]>Hello,
Thank you for the great plugin. I use it for a scout games website.
Here I have some Advanced Custom Fields and I would like to apply the Relative Importance only to the Custom Fields. Is it possible to extend the plugin to do this?
Hi,
Please be so kind and let me know, how can I limit the length of the excerpt?
I tried to add length=”240″ to the {excerpt} shortcode, but in vain.
Please also let me know, how can I change the size of the thumbnail image?
Thank you very much!
]]>I really want to create a column inside a page for Similar “Stories from this author” All I need is a shortcode and I would be set? Is there one? Is there a work-around that works? @just0nequestion posted <?php similar_posts(); ?> about a year ago and it doesn’t work for me. I tried YARPP and it looks awesome but I can’t select author as a category (at least not that I could find, I would love to be wrong on that)
]]>On PHP 8
Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, class “” not found in /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-content/plugins/similar-posts/common_functions.php:638 Stack trace: #0 [internal function]: ppl_do_replace() #1 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-content/plugins/similar-posts/common_functions.php(645): preg_replace_callback() #2 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-includes/class-wp-hook.php(303): ppl_content_filter() #3 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters() #4 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-includes/post-template.php(253): apply_filters() #5 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-content/themes/mecvs/template-parts/content.php(45): the_content() #6 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-includes/template.php(772): require(‘/home/deb139228…’) #7 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-includes/template.php(716): load_template() #8 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-includes/general-template.php(204): locate_template() #9 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-content/themes/mecvs/singular.php(25): get_template_part() #10 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-includes/template-loader.php(106): include(‘/home/deb139228…’) #11 /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-blog-header.php(19): require_once(‘/home/deb139228…’) #12 /home/deb139228/domains/me-cvsvereniging.nl/public_html/index.php(17): require(‘/home/deb139228…’) #13 {main} thrown in /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-content/plugins/similar-posts/common_functions.php on line 638
on PHP 7 it are the following warnings
Warning: call_user_func() expects parameter 1 to be a valid callback, class ” not found in /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-content/plugins/similar-posts/common_functions.php on line 638
Warning: call_user_func() expects parameter 1 to be a valid callback, class ” not found in /home/deb139228/domains/me-cvsvereniging.nl/public_html/wp-content/plugins/similar-posts/common_functions.php on line 638
]]>Hello,
I need to change similar post-placement in my blog post but the placement priority option is not working for me. Can anyone help?
Here is an example you can take a look: Microsoft Surface Laptop 3 13 Review/
As you can see in the link that the review box shows after a similar post, but I need to show it before the similar widget.
Thanks in advance,
Atiqur Rahman
For some reason I can’t get the plugin to simply sort a list of related posts by descending order date. It only will arrange them by ascending order. So I will see the oldest post first and then the last post will be the newest one. I obviously want the order reversed, but can’t make the plugin do this.
In the Output tab section, under ‘Sort Output By’, I have the ‘Output Tag’ of ‘date’ with ‘Order’ -> ‘descending’ and ‘Case’ -> ‘case-insensitive’. Also strangely, it won’t work if I add the date tag as {date}.
Anyone have a similar issue? Everything else seems to work
]]>I want to display the posts side by side. They are currently displayed in a stack, only one column.
]]>Hello
After last update it kills CPU and makes a long processing query list like this:
| 5140985 | database name | localhost | database name | Query | 118 | Sending data | SELECT *, ((0.4500 * (MATCH (title
) AGAINST ( “post name ” ))) + (6.4125 * (MATCH (content
| 0.000 |
PHP version: 7.3.29
Dedicated Server
Hello
I use Similar Posts version 3.1.4 I upgraded today from PHP 7.4 to PHP 8.0 (my site is hispanicla.com and my host is Kinsta) and the went offline. I got an email from my provider and I coppy the errormessage they received:
Our monitoring systems detected that your site Hispanic L.A. (Live) is not available and displays the following PHP error:
2021/06/22 00:16:11 [error] 6502#6502: *2399106 FastCGI sent in stderr: "PHP message: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /www/hispanicla_815/public/wp-content/plugins/similar-posts/languages/en/stemmer.php on line 296" while reading response header from upstream, client: 35.194.36.163, server: hispanicla.com, request: "GET /?kinsta-monitor HTTP/1.0", upstream: "fastcgi://unix:/var/run/php8.0-fpm-hispanicla.sock:", host: "hispanicla.com"
So for the time being I deactivated the plugin and will try to upgrade again. Is that a problem you recognize?
]]>As a lot of people have been asking what the short code for the similar posts plugin is… Here is a way to add the similar posts to your theme files and display the similar posts wherever you like ??
Just add this code to your theme files:
<?php similar_posts(); ?>
Or if you want to use it in a widget or to display within your post content you might use a plugin: do a websearch for “use php in widgets” or “use php in wordpress post”. You will find plenty.
]]>i am using this plugin and found it more helpful but i am using some hooks in site so the position of related posts in single post is not relative so i want to change position in with short code feature https://www.hindilovestory.in/zindagi-shayari/
]]>I want to show current position of once related post. I try Available Tags but not available for it. Everyone who know way to current position of once related post please help me. Example number of related post is 10. with first score will show position is 1, second score will show position is 2, and … to 10. Thank you again
]]>Deprecated: Array and string offset access syntax with curly braces is deprecated in …/wp-content/plugins/similar-posts/languages/en/stemmer.php on line 296
Caused by $array[0]{2} etc. Stemmer v1.3 resolves this
]]>Plugin version: 3.1.3
Many errors of type warning on filter (settings) page like:
Warning: str_repeat(): Second argument has to be greater than or equal to 0 in []wp-content\plugins\similar-posts\admin_common_functions.php on line 531
The {image} tag is picking up the post’s first image – is there any way to pick up the featured image??
(Previously ‘resolved’ not resolved.)
]]>Hi, I think your plugin’s ability to weight by tag makes this my favourite tested plugin for related posts so far, however no images are showing for me. I’m getting titles, excerpts and tag meta but no images for those posts. Link is an example page.
I’d be willing to put time into custom styling the results, if only this returned images.
I’m using Divi theme and WordPress Version 5.4.2 btw.
Secondly, is there any way to add extra importance/weighting to tags within a certain tag group?
For instance, it is more important to me that tags relating to proximity are prioritised to tags relating to amenities. I can’t find any plugin that does this but yours seems sophisticated enough that it might be possible with tweaks.
Thanks
]]>This is an amazing plugin i love it but has some issues need to be solved.
ERROR:
When we use {imgsrc} or {image} it returns the image of the current post instead of the similar post.
Screenshot => https://i.postimg.cc/sxzJjjPz/Screenshot-245.png
Expected:-
When we use {imagesrc} or any tag it should return the image of the post we are reffering to, means it should be the image of the “Similar Post” .
Feature request: Manage index excluding attachment pages.
]]>Is there any code php to show in custom place?
thanks
I would like to show an image right with my excerpt. I am using
<p><strong> {title}</strong></p>
<p>{excerpt}</p>
<a href="{url}" title="article link">More ...</a>
For the image i would add
<a href="{url}"><img class="alignright" src="{imagesrc}" alt="{imagealt}" width="250" height="250" /></a>
However I need to grab the image only if there is one in the post. Otherwise I have code without function in my html.
Is there a solution for this with conditionally output (like documented here: https://rmarsh.com/plugins/post-options/ ), or maybe another solution?
]]>Using WP Version 4.6.14
PHP version 7+
Followed screenshots for configuration, selected to show “match current posts category” and to display after the content, and no posts are being shown.
Regardless of the settings I choose no post displays after the post content.
When I select it to display after the post, the entire post disappears. When I turn this feature off, the post content reappears.
How can I get this plugin working?
Thanks
]]>Hi, I have installed the plugin on WP 5.1.1 and have been working for 2 hours with the settings, and I get no matching results at all. I’ve tried to tweak eveything, but it’s always ‘no matches found’. Show both pages and posts, match current post’s category/tag, filter set to include everything, a,b or a+b, set relative importance of tag to 90% (I want tags to be the most important source), recreated index, and any other setting I can see – and still not getting any match. Double checked that there are multiple posts with identical tag.
Any suggestions of what I might have overlooked?
Another peculiar thing is that when I move the widget to the very top of the right sidebar widget area, every other widget below it disappears! I have to move this widget down to the bottom of the widget sidebar. Putting this widget as no. 2 in the sidebar hides the widgets under it, but not the one above it. Although after a few minutes, this stops happening and all widgets display. I’m unsure if it’s something I do in the settings, or if it reverts back to normal automatically after a couple of minutes.
]]>Hi,
Is it possible to enable Similar Posts for a Custom Post Type?
I have enabled categories for the custom post type, and within the Filter tab of Similar posts the category that contains the custom post type is shown, but no related posts are shown on the custom post type pages.
]]>Hello, this plugin work fine as long as I use {link} in outputm but when I change it to {image} or something else to get part of image it’s blind. Any ideas? ??
]]>