Parent and child categories with their id in drop_down in CPT

Plugin “advanced-custom-post-search” With Change in file “acps-results_loop” <?php register_nav_menus(array( // Added primary again, only for make sequence (theme location) in page:nav-menus.php at admin side ‘primary’ => ‘Primary Menu’, // Second Menu ‘secondary’ => ‘Secondary Menu’, // Third Menu ‘quickLinks’ => ‘Quick Links’, )); add_action(‘wp_enqueue_scripts’, ‘websiteAssetsBootstrapOnly’);

how to show product custom taxonomies in woocommerce rest api

I eventually found a way using filters. I didn’t know there were filters for REST API responses… Here is my solution : add_filter( ‘woocommerce_rest_prepare_product’, ‘custom_products_api_data’, 90, 2 ); function custom_products_api_data( $response, $post ) { // retrieve a custom field and add it to API response $response->data[‘custom_taxonomy1’] = wp_get_post_terms( $post->ID, ‘custom_taxonomy1’, [] ); $response->data[‘custom_taxonomy2’] = wp_get_post_terms( … Read more

Adding a Section for Visitors

This forum is to get answers to (technical) problems, whereas you are asking for opinions. The “challenge” you’re having can be solved in different ways. For starters the comment form could be used and it should be possible to add additional fields. See add_comment_meta() (https://codex.wordpress.org/Function_Reference/add_comment_meta) Another way could be to add use a form to … Read more