Thanks for wonderful plugin. Is there any way to display nothing if there are no related posts? Because at the moment <H3>Related Posts” and “None found” entries are displayed. I’m using shortcode in functions.php.
]]>Hi there,
Your plugin is working perfectly for what I needed – thanks for developing and maintaining it.
When I go to ‘Add Relation,’ I’m sometimes finding that my search doesn’t yield the post I’m trying to establish as ‘related.’ The posts I’m searching for when this happens are published.
As a workaround, if I’m going to have ‘Post A’ link to ‘Post B’ and I can’t get ‘Post B’ to show when I try to add a relation for ‘Post A,’ I’ll go to ‘Post B’ and add a relation back to ‘Post A.’ However, I’ve now encountered a situation where I can’t get either to show when I do a search.
Are you familiar with this issue or how I might resolve it?
All the best,
Jon
I have been using Custom Related Posts for a while now and really appreciate it. The graphics appear as 200 x 100. However occasionally a graphic appears in a different size, and I’m trying to work out why.
Today I selected 5 posts in Custom Related Posts, all of them originally the same size (720 x 360) and with smaller sizes created by WordPress. Four of the five appear correctly as 200 x 100 on the page, but one appears as 144 x 72.
I’m trying to figure out why. Can you tell me please how CRP chooses which size graphic to show, and why it sometimes chooses a different size? Is there anything I can do to change this?
Thanks.
Hi! Thank you so much for the effort you’ve put into making this plugin. I’m successfully using it to manually relate notes that I have gathered along the years, which are all inside a certain category in my site.
I have a question which came to my mind because I see that when you define the related posts, they’re shown in the post screen as “Link from” and “Link to” and that’s interesting. I’m little by little creating a digital garden with my posts and was wondering whether it would be possible to output the post relationships on the front end as they appear on the backend, that is, with two separate lists, one for “outgoing links” and the other for “incoming links”?
Any help or advice is much appreciated.
Thank you in advance.
]]>Hi, is it possible to search posts by tag?
]]>Hello, recently our server was upgraded from MySQL 5.7 to 8.x
Since that time the functionality to add related posts to our blog posts isn’t working. Specifically the meta box shows up but the search box never returns results.
I reviewed the server logs and see the following error message.
[2023-10-13T15:52:32.695983+00:00] WordPress database error Illegal argument to a regular expression. for query #012#011#011#011#011#011SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.ID#012#011#011#011#011#011FROM wp_posts INNER JOIN wp_postmeta AS a ON ( a.post_id = wp_posts.ID ) LEFT JOIN wp_postmeta AS b ON ( (( b.post_id = a.post_id )) AND (( b.meta_key LIKE CONCAT( '\_', a.meta_key ) )) ) #012#011#011#011#011#011WHERE 1=1 AND ( ( ( b.meta_id IS NOT NULL ) AND ( a.meta_value REGEXP '[[:<:]]manager[[:>:]]' ) ) OR ( ( wp_posts.post_title REGEXP '[[:<:]]manager[[:>:]]' ) OR ( wp_posts.post_content REGEXP '[[:<:]]manager[[:>:]]' ) OR ( wp_posts.post_excerpt REGEXP '[[:<:]]manager[[:>:]]' ) ) ) AND wp_posts.post_type IN ('news', 'webinars', 'events') AND ((wp_posts.post_status <> 'trash' AND wp_posts.post_status <> 'auto-draft'))#012#011#011#011#011#011#012#011#011#011#011#011ORDER BY wp_posts.post_date DESC#012#011#011#011#011#011LIMIT 0, 15#012#011#011#011#011 /* From [www.redacted.com/wp-admin/admin-ajax.php?crp_ajax=1] in [/nas/content/live/redacted/wp-content/plugins/custom-related-posts/helpers/ajax.php:52] */ made by do_action('wp_ajax_crp_search_posts'), WP_Hook->do_action, WP_Hook->apply_filters, CRP_Ajax->ajax_search_posts, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
I did some searching on the error and found that Illegal argument to a regular expression
is a common error after the upgrade and there’s even some discussion on the mysql website – https://bugs.mysql.com/bug.php?id=106504
I’m wondering if there’s a timeline for an update so the plugin works with MySQL 8 or if a patch is available.
Let me know if I can provide any other info.
Thanks!
]]>I’m using the plugin to load custom related posts into my existing theme layout. The setup is pretty simple:
$custom_relations = CustomRelatedPosts::get()->relations_to($current_post_id);
$custom_relation_ids = array_keys($custom_relations);
What I wanted to ask: is there any way to adjust this logic so it contains the ordering matches the custom ordering from the post page where the links are created?
Much appreciate the help and great plugin!
]]>Hi, I have an error in my posts – https://prnt.sc/16M1EN8f48yg
How I can delete all relations for this post only? Or maybe rebuild the relations?
]]>I translated the plugin on your translation page 1 year ago and until today you haven’t approved the translation! The plugin also doesn’t have .pot files for translation.
]]>the existing related links does not auto update once change the permalink contstruction, e.g.
old link: https://www.abc.com/hello-world
I set “blog/” to the front on the permanlink option page.
new link: https://www.abc.com/blog/hello-world
but the related post link still same as the old one.
thanks!
]]>The plugin works great and with a bit of formatting tips here I have it working as I want.
I was wondering if the default “Related Posts” can be changed to another default. This keeps me from having to remember to edit every time.
Trying to implement the suggestion in the following thread. I.E., use h2, h4, etc.
I am trying the following code:
div.crp_output_list_title
– h4.crp-list-title
Seems I am lacking in my code understanding. Some help would be appreciated.
FYI, really like this simple application of the topic. I like having control
https://www.ads-software.com/support/topic/change-h4-title-block/
]]>I’m really appreciating this plugin because it is simple and works well. I have one question please, which I can’t find in the documentation.
How does the plugin determine the size of graphic it displays, and how can I change that if I wish?
Thanks.
]]>Hi, when displaying on frontend, it’s possible to show elements on 3 rows instead of 2?
Thanks
]]>Featured image or thumbnails are not showing when Pages are added to relations.
They are working fine when I add posts.
]]>In trying to customize the default plugin for my layout, I noticed that the title H3, is outside the html block related to the list, is there a way for it to stay inside the .crp-list
class?
Is it possible to add another list, a 3rd list to the already “double list” option?
I would not mind including it myself, just not sure where to start… Are there any shortcodes or php snippets available?
Thank you, it’s a great plugin.
]]>Is there a way to add this automatically beneath every post, using just the block editor?
I understand you can do it manually in each post, but it would be great if you could also do it just once via the site editor with a block. By this I mean Appearance > Editor > Single template, then add the CRP block.
Appreciate this is possible via editing single.php, but the block method would be a lot easier. Unless I’ve missed something?
]]>Does is work with multisite setup? I added a few posts there but it wont show in front end.
https://www.dropbox.com/s/tp9v2ke20vs5jsa/added%20related%20posts.jpg?dl=0
I would like to add “rel=’canonical'” attribute to all the related posts. can it be possible?
]]>Hi, it’s not clear to me in which php file (and where, within this file) add the code
<?php echo do_shortcode( ‘[custom-related-posts]’ ); ?>
in order to show the related posts at the end of the post…
PS: I’m using the Classical Editor
]]>Hi there,
Just downloaded your plugin, I think it’s almost perfect! Exactly what I have been looking for!
Would it great if we can also relate posts/pages to categories as well ??
Many thanks,
Osman
In the SEO evaluation of this plugin, we’re looking for a way to change the title block from H4 to H2 or any other. Does anyone know how to change this feature?
]]>Hi,
we like to avoid that the wording ” Related Post – no one found” appear on one post if there are no related posts.
Thanks in advance,
Michele
Hello,
After several months without editing my site, I saw today that for almost every page, the size of the thumbnails changed, so each link has a different thumbnail’s size, while in the past all the sizes were the same.
See for example the related items in
Thank you very much for your help!
]]>It doesn’t have an option to limit the amount of posts that are displayed.
I would like to limit it to only show 3 posts per post.
]]>Hello Brecht,
How are you?
This plugin seems like what I was looking for.
At the moment I am using yarpp but I got tired of their algorithm and want to choose the related posts myself.
I have hundreds of posts so my plan was to install your plugin, and slowly over the next few months go one by one in all posts, hide the yarpp related posts for that specific post and instead display yours.
So that hopefully in a few months I will have replaced all the automatic ones with manual ones.
1) Is this doable? For a period yarpp and your plugin will live together. Are there any compatibility issue?
2) Once I install the plugin, this will only add related posts when I go and manually add them post by post right? Nothing will be shown on those pages that I haven’t updated yet, correct?
3) I installed your plugin on a staging site, selected a couple of related posts and actually nothing is showing :/
4) I would like if possible for the related posts to show in a nice grid similar to how yarpp related posts show. Do I need to hire a web dev for this CSS customization or is it easy?
Thank you so much for this plugin!
]]>Hi,
Thanks for the plugin, very helpful.
Is it somehow possible to add the excerpt of the related posts if needed, or will it be possible for the future versions?
Cheers
]]>Hi,
Is the plugin fully compatible with PHP 8? (and higher)
Thanks,
Kris
Hello, sorry for the inconvenience, could you help me please?
the plugin works in some parts of my theme but in the home it does not work, it does not show the relationships and I think that a new function has to be made?
this shortcode only works on single post, it doesn’t work on page.
https://i.postimg.cc/FRBmQ1Fd/imagem59.png
https://i.postimg.cc/qBN6633F/imagen-4.png
https://i.postimg.cc/MZgM7p0p/imagen4.png
https://i.postimg.cc/qq6rB0gm/img58.png