prescreened user
that is bidirectionally linked with the user
(extended) pod.[each prescreeneduser]
<h3>{@user_nicename}</h3>
<div>
<a href="https://localhost/site/author/{@user_login}">
<button>View User</button>
</a>
</div>
<form method="post">
<input type="hidden" name="user_id" value="{@ID}">
<input type="hidden" name="job_vacancy_id" value="{@t.ID}">
<button type="submit" name="update_user_pod">Shortlist User</button>
</form>
[/each]
I know that in this line <input type="hidden" name="user_id" value="{@ID}">
the tag {@ID}
gives me the related user’s ID, since I’m inside the each
loop. But in the next line, I want to get the ID
of the job-vacancy
post. Outside the each
loop I can get it using {@ID}
but I’ve tried every combination to get it inside the loop, and can’t – – {@t.ID}
, {@d.ID}
etc. How do I get the post_id that’s outside the loop?
But what about a situation like this one:
I have two pod types: and they’re connected with each other through a relationship field, both multiple select.
When I go to the selection dropdown list of a post of type “pod 1”, say “TEST-902823540”, I want the customized WHERE to filter for pods of type “pod 2” that start with “TEST”. Similarly, when I go to the post titled “MISC-2354000” (of type “pod 1”) I want the dropdown to only show pods of type “pod 2” that start with “MISC”.
So what I’m looking for is a customized WHERE in the pods field settings that will be dynamically responsive. Is this feature available in pods?
I came across something called “magic tags” but am not sure if that’s available in the field settings…
I created two CPT: Profile, Product. In the Profile pod, I made the relationship field, product
which point to Product CPT (in the “Related Type” field). When creating or editing the entry of Profile, I can choose the products, everything’s fine.
But it can’t seem to display those related products in the Loop Grid of Elementor.
To be clear, I use Elementor to create a new Loop Item template for Product, to displaying them as grid in the Profile template. In the Query settings of Loop Grid, I choose Product as Source, in Query ID → Dynamic Tags → Pods Field → Key: product
.
But it always display all the products in the Product CPT, not just the related ones as I choose earlier.
]]>I need to change my relationship between my Photos and People field groups to bi-directional. I currently have a repeater field with a relationship field pointint to the People field group.
I`m not exactly sure what I need in the People FG to add a bi-directional relationship, and whether changing things from one-way relationship to two-way will destroy current relationships.
Any help would really be appreciated.
]]>i don’t find documentation on how pods works with polylang in relationship fields.
For example, I got 2 pods:
– Hotels (a CPT pod)
– Areas (a taxonomy pod).
In Hotels, I got a relationship field to select the area (Paris, South of France) in a select menu from Areas pod
Polylang is activated for both pods. So I could create each area in each language. But Paris is called Paris in each language. So in the BE, I see 3 Paris in the list but don’t know which is the right one.
Thanks.
]]>With custom fields of text type, the content of the field is displayed, but with relationship type fields, the content is not displayed. The problem is with the relationship custom fields. In this case, it is a relationship type field to select several values ??that come from the CPT that I related to that custom field.
Is there any recommendation to be able to display the content of custom relationship type fields?
]]>In short when I create a post for a baptized person named Antonio, I can then add other people mentioned in the record. Let say the godfather was Joseph.
When I add Joseph from the parent post I will have to manually fill the field relative_to_the_baptizand with the related parent post Antonio. I would like this to be auto-populated with the corresponding parent post to avoid mistakes (this is especially important because there will be a lot of people with the same name, making it very difficult to manually insert the wright info.
I am fairly new to the world of Pods so please bear this in mind when providing you much welcome support.
Thanks in advance.
In this way:
– FIELD TYPE: Relationship
– RELATED TYPE: Post Type
*- FILTER BY TAXONOMY: an option that enables me to choose a term from a taxonomy*
Is it possible to create a Relationship field, with Related Type by Post Type, and have an option for me to filter a term from a specific taxonomy within this Post Type?”
]]>