I apologize for having to open a new ticket, but your system closed the previous one before I was done and I could not tell whether what I posted would reach anyone.
We were discussing how get the menus to appear and then present results for properties within each state and subsequent drill down on each property.
In the previous thread, Nigel said "
Hi John
I need to know more about how you have set this up in terms of your custom post types, taxonomies etc.
You have a View that lists states which you want to link to an archive of properties for that state, yes?
So the View that lists states. What are the states? A post type? A taxonomy?
And for the property archive. How is the state connected to the property (i.e. how does an Alabama property know it is in Alabama)? Is it assigned as a taxonomy, added as a custom field? Or is there a post relationship set up between a property post type and a state post type?
If you can let me know that then I should be able to work out how to generate the links you require."
Here is the message I tried to post:
Thank you for the detailed response. I believe you understand where I am headed with this.
In using the method you suggested, I began to wonder whether letting the archive filter the results might be a better way. The layout "States Layout" , used on the "Farms By State" page has a cell in it with the following code:
[wpv-layout-start]
[wpv-items-found]
<div class="state_menu_holder list-group">
<div class="blurb_box12">
<div class="for_sale_green">Farms For Sale - Select A State</div>
<!-- wpv-loop-start -->
<div>
<wpv-loop>
<div class="state_holder flex_container">
<a href="<em><u>hidden link</u></em>">
[types field='state-graphic' size='full' align='none' separator=', '][/types]</a>
<div class="state_title">
<a href="[wpv-post-url]">
[types field='state-full-name'][/types]</a>
Farms For Sale</div>
<div class="area_info">
<a>Area Info! <i>[types field='area-information'][/types] </i></a></div>
</div>
</wpv-loop>
</div>
<!-- wpv-loop-end -->
</div>
</div>
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
This layout is used in the "Farms By State" page with no query results.
HOWEVER, clicking on the state title link, such as Alabama, results in seeing the archive for state/alabama with the farms that are children of the Alabama CPT.
So, I am very close to getting this right.
If fact, if the archive page allowed me to drill down into the individual farms as they are listed, I think that would be as far as we needed to go.
Please feel free to suggest a better method if you see one.
Thank you.