I have two custom post types. The first is called "Bills" the second is called "Com Hearings". In Bills and Com Hearings, each post has a unique identifier in a custom field called "Bill_ID" (in the bills post type it's actually named bill_id_bills). I have a content template that is the default display for the Bills post type. What I'm trying to do is match the value in the "Bill_ID_bills" field in "Bills" with the value in the "Bill_ID" field in "Com Hearings" and when those two values match, display the "Hearing Date" field from the Com Hearings post type.
I created a view for the "Com Hearings" post type. I included a query filter that says "the field Bill_ID is a 'string' that is 'equal to' the following: 'shortcode attribute' "billid". In the loop I included the field "hearing date" from Com Hearings".
Next, I edited the content template for Bills. In the template window I included the following code:
When I display the content template for bills, what it gives me is multiple hearing dates...it displays the hearing date for every post in Com Hearings, rather than the hearing date for the one post in which the value in Bill_id matches the value for Bill_id_bills. It doesn't seem to recognize the argument "billid=" . What is the solution?
Hello. Thank you for contacting the Toolset support.
Well - could you please share problem URL and access details so I can check whats going wrong with your view and setup.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.