[Resolved] Creating sibling relationship within custom post types

This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Our next available supporter will answer your ticket in about 2.49 hours from now. Thank you for your understanding.

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.

Related documentation: Creating Post Type Relationships

This topic contains 2 replies, has 2 voices, and was last updated by  Suzanne Wenger 1 week, 1 day ago. The support staff assigned to this topic is Luo Yang.

Viewing 3 posts - 1 through 3 (of 3 total)
Author
Posts
#578018

Tell us what you are trying to do?
Create a sibling relationship between two posts within the same custom post type. This will allow me to show a "complementary" post to a site visitor when he or she is viewing another post. For example, if a user is reading a news post, I want to be able to suggest other similar news posts. Or if a user is viewing an education degree page, I want to suggest other complementary degrees to the user.

I would need to be able to setup a sibling relationship option within the Edit window of the custom post type. There would be a field in the post type edit window that would allow me to choose one or more post within the same post type to establish a sibling relationship. I would then add the sibling relationships to my content template which would populate complementary options when the post loads.

The sibling relationship would work well, because once established then the two custom posts would be linked and on either post page a link would be provided to view the other post page.

I'm sure you've gotten requests for this, but I couldn't find documentation on it or a good support post to address this issue from the Edit window in a custom post.

My site is: falk.syr.edu

#578082

Luo Yang
Forum moderator

Supporter languages: English (English ) Chinese (Simplified) (简体中文 )

Supporter Timezone: Asia/Hong_Kong (GMT+08:00)

Dear Suzanne,

In your case, it needs to setup many-to-many relationship between posts of same post type, it is a built-in feature of next version of Types plugin 2.3, see our blog post:
https://wp-types.com/2017/09/first-beta-of-types-2-3-with-post-relationship/

Our developers are still working on it, but there is a beta version you can test:
You can get this beta from your Toolset account. Click on Downloads, switch the channel to Beta and download Types 2.3 beta.

This is barely a beta version. It’s only intended for testing purposes and definitely not for any production or development site. Types 2.3 beta doesn’t even work with other Toolset plugins (yet).

#578192

Hi Lou,
Thanks for the quick response on this. I am looking forward to the new Types plugin to come out. It has a lot of valuable features. I will "hardcode" what I need for now until this comes out.

Thanks,
Suzanne

Viewing 3 posts - 1 through 3 (of 3 total)

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.