Skip Navigation

[Résolu] What is the way to create relationship between page and post

This support ticket is created Il y a 6 années et 1 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Ce sujet contient 5 réponses, a 3 voix.

Dernière mise à jour par Nigel Il y a 6 années et 1 mois.

Assisté par: Nigel.

Auteur
Publications
#1128043
Screenshot_1.png
Screenshot_2.png

Tell us what you are trying to do : Connect post type with page usinng post relationhsip

Is there any documentation that you are following : No, I have created custom field to add post id to display it on particular page.

Is there a similar example that we can see : Example, Display quote from quote post type.

What is the link to your site : lien caché

But, this is not better way to do it, can you suggest any other proper way to do it?

#1128053

You can use this Documentation:
https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/

You can read more about Post Relationships here:
https://toolset.com/documentation/post-relationships/

The idea is to create 2 Post Tyes at least, then build a relationship (could be a one to many, where many quotes can belong to one other post type)

After you finish the wizard the "parent" post will show a section to add or connect "child" posts (Quotes).
You can later display those "Child" Quotes on "Parent" post types with Views:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/

Let us know if you need particular details, we could also set up a simple Module you could import at look at how it's built.

#1129724

I know we can create post relation between 2 post types but I would like to do it with page and post type.

#1129967

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Screenshot 2018-10-18 at 14.51.51.png

Pages are just another post type.

You create relationships between posts and pages just like you would between two different custom post types, starting at Toolset > Relationships.

See screenshot.

#1132541

Hi Nigel,

I will check and get back to you.

Thanks!!

#1132675

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

OK, let me know if you need any more info.