customize Dokan multi vendor: how can i set every Dokan as child of another dokan?

open up store-form.php <div class=”dokan-form-group”> <label class=”dokan-w3 dokan-control-label” for=”dokan_store_name”><?php esc_html_e(‘Store Name’, ‘dokan-lite’); ?></label> <div class=”dokan-w5 dokan-text-left”> <input id=”dokan_store_name” required value=”<?php echo esc_attr($storename); ?>” name=”dokan_store_name” placeholder=”<?php esc_attr_e(‘store name’, ‘dokan-lite’); ?>” class=”dokan-form-control” type=”text”> </div> </div> <!– TODO –> <div class=”dokan-form-group”> <label class=”dokan-w3 dokan-control-label” for=”dokan_store_parent_name”><?php esc_html_e(‘Store Parent Name’, ‘dokan-lite’); ?></label> <div class=”dokan-w5 dokan-text-left”> <input id=”dokan_store_parent_name” required value=”<?php echo … Read more

Display Custom Field or Custom Taxonomy in front page /post/product

It depends on the theme you’re using if it has the functionality to show the information. Usually, if you had a custom attribute using default WP, it will show those but for advance custom fields you might need to add the code into your theme. For example, the following code will help you to display … Read more

Numeric pagination custom post type

You’re referencing the global $wp_query object in your function which you’ve reset using wp_reset_query(). You can resolve the pagination by passing your custom $loop WP_Query object to the function. I also changed wp_reset_query to wp_reset_postdata Also you’re making the call to your pagination function in the while loop instead of after it. Your function should … Read more

Forcing two or more custom post type to be private

You can add multiple compared condition variable in single if condition using logical OR operator. For more knowledge of Logical condition click function force_type_private($post) { if ($post[‘post_type’] == ‘my_post_type1’ || $post[‘post_type’] == ‘my_post_type2’) { $post[‘post_status’] = ‘private’; } return $post; } add_filter(‘wp_insert_post_data’, ‘force_type_private ‘);