Skip Navigation

[Résolu] How to display Intermediary post type Custom Fields

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
How to display Intermediary post type Custom Fields

Solution:
You can display the intermediary post type custom field using the "item" attribute.

For example:

[types item="@property-homeowner.association" field="status" option="wpcf-fields-radio-option-7fc78a2cbf047b5f9640123a3c54c5c1-1"]Current[/types]

Where:
- "property-homeowner" is the intermediary post type slug

You can find proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/how-to-display-intermediary-post-type-custom-fields/#post-876228

Relevant Documentation:

0% of people find this useful.

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

Ce sujet contient 6 réponses, a 2 voix.

Dernière mise à jour par larryB-3 Il y a 6 années et 6 mois.

Assisté par: Minesh.

Auteur
Publications
#873946
Screen Shot 2018-05-10 at 5.41.34 PM.jpg
Screen Shot 2018-05-10 at 5.29.01 PM.jpg

Tell us what you are trying to do? I have a intermediary post type custom field called "status". It is a field between a many:many relationship of Property and Homeowner. I want to be able to do 2 things:

1. Display the value of the "status" field.
2. I won't to use the value of the "status" field to filter results of a view.

What is the link to your site? Here is a sample page and as you can see nothing is returned for the status.
lien caché

<div class="value">[types id="$property-homeowner" field="status" option="wpcf-fields-radio-option-7fc78a2cbf047b5f9640123a3c54c5c1-1"]Current[/types][types field="status" option="wpcf-fields-radio-option-963437d0ad83c766c0b608c7ff747572-1"]Previous[/types]</div>

#875631

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - could you please confirm what Toolset plugin version you are using? Are you using latest Release Candidate plugins or Stable Toolset plugins?

Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#876226

I'm using the latest version, release candidate.

#876228

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Well - assuming your many to many relationship slug is property-homeowner.

You should try following code:

<div class="value">
[types item="@property-homeowner.association" field="status" option="wpcf-fields-radio-option-7fc78a2cbf047b5f9640123a3c54c5c1-1"]Current[/types]
[types item="@property-homeowner.association" field="status" option="wpcf-fields-radio-option-963437d0ad83c766c0b608c7ff747572-1"]Previous[/types]</div>
#876666
Screen Shot 2018-05-11 at 10.11.02 AM.jpg
Screen Shot 2018-05-11 at 10.07.47 AM.jpg

Thank you! I was now able to display this in column called "Status" as seen on the screen shot. Now that I have these statuses in a view table, is there away to split these into 2 separate tables, 1 table for Status=Current and 1 table for Status=Previous? I tried adding a 2nd filter but get "No items returned". See screen shot of logic of trying to do a "Previous" only view.

#876674

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Well - that is another question and I'm closing my shift here.

Could you please kindly open a new ticket with your each new question, this will help other users searching on the forum
and you will get quick reply with supporter working in current shift.

Thank you for understanding.

#877267

Opening a new discussion.