Skip Navigation

[Gelöst] CPT Relationship to Self Workaround

This support ticket is created vor 3 Jahren, 5 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 3 Jahren, 5 Monaten.

Assistiert von: Minesh.

Author
Artikel
#2088959

Tell us what you are trying to do?
I have a BPT "Software" that has a collection of fields related to a software solution. Conceptually, I would like to model something like alternativeto.net ... that shows you different solutions. Ideally, there would be CPT "Relationship to Self" type functionality where I could individually select similar solutions to the CPT entry, but I understand that is not possible.

I am curious if there is an ideological workaround, perhaps using categories or tags that would allow me to display "similar solutions".

Is there any documentation that you are following?
No

Is there a similar example that we can see?
versteckter Link

What is the link to your site?
Not Live... currently writing data model.

#2089333

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

if you want to allow users to connect only one post from the same post type then I suggest you should create a custom select field and use the Types hook: wpt_field_options
=> https://toolset.com/documentation/programmer-reference/types-api-filters/#wpt_field_options

Please check the following related ticket that may help you:
=> https://toolset.com/forums/topic/blank-default-option-in-pre-populated-select-field/#post-1632795