I am trying to: I have a parent Brand custom post type with a child Product custom post type. I have a 'Brands' pulldown/select that shows the parent brands belonging to the logged-in user. It should display on the CRED 'Edit Product Listing' and "Create Product Listing" forms. It was working fine in Views 1.10.1 but does not appear or generate after upgrading to Views 1.11
I visited this URL: hidden link
I expected to see: A pulldown listing the Brands custom posts belonging to the logged-in user.
Instead, I got: A blank space where no pulldown is output.
The pulldown in the CRED form looks like:
<div class="cred-field cred-field-belongs_brand-listing_id">
<label class="cred-label">
Brand:
</label>
[cred_generic_field field="_wpcf_belongs_brand-listing_id" type="select" class="" urlparam=""]
{
"required":1,
"validate_format":1,
"persist":1,
"default":["--- Select brand listing ---"],
"options":[[wpv-view name="Brands belonging to this user"]]
}
[/cred_generic_field]
</div>
The View output for "Brands belonging to this user" View is
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-item index=1]{"value":"[wpv-post-id]","label":"[wpv-post-title]"}
[wpv-item index=other],{"value":"[wpv-post-id]","label":"[wpv-post-title]"}
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No brands found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
With Views 1.10.1, the output of the cred_generic_field is
<div class="cred-field cred-field-belongs_brand-listing_id">
<label class="cred-label">
Brand:
</label>
<div class="js-wpt-field-items js-wpt-repetitive wpt-repetitive" data-initial-conditional="" data-item_name="select-_wpcf_belongs_brand-listing_id">
<select id="cred_form_15988_1-select-5-1447880440" data-wpt-validate="{"required":{"args":{"1":true},"message":"This field is required"}}" data-wpt-field-title="_wpcf_belongs_brand-listing_id" class="wpt-form-select form-select select" data-wpt-type="select" name="_wpcf_belongs_brand-listing_id">
<option value="16585" class="wpt-form-option form-option option" data-wpt-type="option" data-wpt-id="cred_form_15988_1_cred_form_15988_1-select-5-1447880440" data-wpt-name="_wpcf_belongs_brand-listing_id">Clares test brand</option>
<option value="16695" class="wpt-form-option form-option option" data-wpt-type="option" data-wpt-id="cred_form_15988_1_cred_form_15988_1-select-5-1447880440" data-wpt-name="_wpcf_belongs_brand-listing_id" selected="selected">clares test brand 77</option>
<option value="16701" class="wpt-form-option form-option option" data-wpt-type="option" data-wpt-id="cred_form_15988_1_cred_form_15988_1-select-5-1447880440" data-wpt-name="_wpcf_belongs_brand-listing_id">clares test brand 8</option>
</select>
</div>
</div>
In Views 1.11, the output is
<div class="cred-field cred-field-belongs_brand-listing_id">
<label class="cred-label">
Brand:
</label>
</div>
like the View isn't outputting, or not being picked up.