you must login to see the pages ,use toolset and toolset. (if you neeed wp-admin please set me a private reply)
i have a post type "dog"
i have custom field group for the "post type named Dog info".
i have 2 fields named "sire and dam" they are set as select fields , so if i enter a dog it , that dog can then be set as the sire or dam of any new dogs i enter via the 2 fields select box.
when a dog has a dam and sire set ,the system and display work perfect. like this example
hidden link this is correct , the backend for this dog is here hidden link , if you notice it has the dam and sire set and works perfect.
when a dog has NO dam or sire set it will list ALL dogs as the dam and sire like this example
hidden link the back end for this dog is here hidden link if you notice this dog has the dam and sire as "not set"
so the problem is not displaying the relevant dogs as sire or dam , but rather it is showin all dogs when unset ,when in fact it should display nothing.
how the view is constructed.
so the dog page uses this view
hidden link which then uses
[wpv-view name="view-to-show-dogs-related-sire-and-dam-single-dog-page" ids="[types field='sire-of-dog' output='raw'][/types]"]
the view [wpv-view name="view-to-show-dogs-related-sire-and-dam-single-dog-page" ids="[types field='sire-of-dog' output='raw'][/types]"]
uses the loop with
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
!<span style="color:red">[types field='dogs-awards' separator=', '][/types] </span>!*[wpv-post-link]* <br>
Breeder: [wpv-post-link item="@person-dog.parent"]<br>
[wpv-conditional if="( '[types field='person-affix-before' item='@person-dog.parent'][/types]' eq '' )"][/wpv-conditional]
[wpv-conditional if="( '[types field='person-affix-before' item='@person-dog.parent'][/types]' ne '' )"]Breeder Affix: [types field='person-affix-before' item='@person-dog.parent'][/types] <br>[/wpv-conditional]
[wpv-conditional if="( '[types field='judges-panel' item='@person-dog.parent'][/types][types field='judges-book-number' item='@person- dog.parent'][/types]' eq '' )"][/wpv-conditional]
[wpv-conditional if="( '[types field='judges-panel' item='@person-dog.parent'][/types][types field='judges-book-number' item='@person- dog.parent'][/types]' ne '' )"]JUDGE STATUS: [types field='judges-panel' item='@person-dog.parent'][/types][types field='judges-book- number' item='@person-dog.parent'][/types][/wpv-conditional]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]
the queery is set as
Post ID filter Posts with IDs set by the View shortcode attribute:
ids
thanks for any insight you can shed on this matter .
martin