I have a custom post type called billco-products and I have registered an attached posts field
$product_properties->add_field( array(
'name' => __( 'Related Products', 'o2dcaframework' ),
'desc' => __( 'Drag products from the left column to the right column to relate them to this product.<br />You may rearrange the order of the products in the right column by dragging and dropping.', 'o2dcaframework' ),
'id' => $prefix . 'related_products',
'type' => 'custom_attached_posts',
'column' => true,
'options' => array(
'show_thumbnails' => true,
'filter_boxes' => true,
'query_args' => array(
'posts_per_page' => 10,
'post_type' => array('billco-products'),
),
),
) );
When you click the the search button it pulls up the modal but doesn't list any posts. If I alter the post_type args array to be
'post_type' => array('billco-products','page'),
and then go back and click the search button, I am returned with a list of all pages as well as all of the billco-products posts.
I am not sure where the disconnect is here. Honestly it would be great to even just hide the search box since the filter box is available.
I have a custom post type called billco-products and I have registered an attached posts field
When you click the the search button it pulls up the modal but doesn't list any posts. If I alter the post_type args array to be
and then go back and click the search button, I am returned with a list of all pages as well as all of the billco-products posts.
I am not sure where the disconnect is here. Honestly it would be great to even just hide the search box since the filter box is available.