也许有人可以帮助制作自定义帖子类型的相关帖子?我受不了了。。。代码在此处:https://pastebin.com/zRVjuMBn
For example:
We are in current post:
ID | title | cust\\u category | cust\\u names | cust\\u settings
1 | X1 | cat1,cat3 | name8 | set1,set5
And we have customs posts:
ID | title | cust\\u category | cust\\u names | cust\\u settings
2 | X4 | cat1 | name9 | set2
3 | X1 | cat1,cat3 | name9 | set5
4 | X8 | cat12 | name12 | set12
So related posts to current post (ID = 1) will be:
ID 3和ID 2。
ID3是最相关的,因为它具有相同的值-X1、cat1、set5(相关的3个值)。
ID 2也与一个值cat1相关。
Or you can see this explanation in image: