For a blog-type site, I would like to allow the webmaster to manually associate each post with other posts that share the same theme.
I read in the Toolset forum that it is not possible to create relationships between posts of the same content type.
Especially if the posts are native WordPress posts.
Apparently there would be a solution using tags, but it seems quite cumbersome to me to implement.
Another solution would be to create a custom field for posts, in which the webmaster could indicate the ID of related articles. Then create a view to list the articles referenced in this custom field (title, featured image, etc.).
Unfortunately I have not found a detailed explanation to implement this method and I will need some help.
Hello. Thank you for contacting the Toolset support.
I read in the Toolset forum that it is not possible to create relationships between posts of the same content type.
==>
Yes, that is true that we do not offer the self join relationship for any post type including standard post types and custom post types.
Another solution would be to create a custom field for posts, in which the webmaster could indicate the ID of related articles. Then create a view to list the articles referenced in this custom field (title, featured image, etc.).
==>
If you agree to use to add a custom field that holds the IDs of those related posts, then you should add a custom field and set it to be repeating field so that you can add multiple values to it.
I'm not sure yet where exactly you stuck, if you setup a repeating field and add your related post IDs to it and add a view and tell me where exactly you require help I would be happy to help.
I tried to prepare the elements.
- a repeatable custom field in which to insert the IDs of related articles
- a view in classic mode
- a content template
When I insert my view in the content template, in the popup, there is a Query filters tab where you can enter a value.
I don't really know what to put since I want the IDs of the custom field to be used.
For now, the shortcode of my view is [wpv-view name="insight-related-posts-test2" relatedid="" cached="off"]
Can you please share problem URL where you want to display the related posts and admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I've changed the query filter you added to your view as you can see with the following screenshot: hidden link
=> hidden link
On the content template, I've added the view you created above I've removed your existing view form the content template and added the above view using the "Fields and Text" block as given under to the right sidebar:
=> hidden link