Tell us what you are trying to do?
Hi. I have a custom post type called Aid Requests. Each Aid Request is assigned to an Aid Account.
To manage Aid Accounts, I have another custom post type called Aid Accounts.
Each Aid Account has three custom fields: 1) An Account ID, 2) an Account Name, and 3) An Account Number.
Throughout my app, I'm wanting to use the Account ID as the unique identifier.
On my page that displays the data for a single Aid Request, I want to display the Account Name and Account Number for the Aid Account that it's been assigned to, but the Aid Request only has the Account ID field.
In the View that gets the Aid Request, I'm thinking I can include another View that gets the Aid Account, but I need to figure out how to filter the Aid Account View so that it only gets the one single Aid Account post matching the Account ID.
In my Aid Account View, I filtered by Shortcode attribute, with the value being aidaccountid.
Then in my Aid Request View, I added the Aid Account View like so:
[wpv-view name="display-current-aid-account" aidaccountid="[types field='account-id'][/types]"]
This didn't work (evidently I can't put a types shortcode into the value for the aidaccount id attribute.
When I hardcoded a value, like this:
[wpv-view name="display-current-aid-account" aidaccountid="000000000"]
... it worked.
I'm wondering if it's possible to achieve what I want this way?
What is the link to your site?
See: hidden link
In the list at the top where it says "Account Number", we see what I would like to display: The Account Number, followed by the Account Name in parentheses.
The next list item, "Account (New and Improved)" is where I've inserted my View for display-current-aid-account, but as you'll see, it's not filtering to the single account that this Aid Request is assigned to.
Any guidance on how I can achieve what I'm aiming to do?