Airships Blimps & Balloons, Boats, Ships & Submarines, Early Aviation, Helicopters, Ready to paint blanks , Military Airplanes – Jet, Military Airplanes – Propeller, Private & Civilian, Space, NASA & Experimental, Stands and Wall Mounts, Specials, Tail Shields & Flashes Plaques & Seals, Tanks & Armored Vehicles
ID, 'product_cat' ); $contact_url = 'https://planearts.com/contact-us/?v=a25496ebf095'; $contact = 'contact us'; if ( $categories && ! is_wp_error( $categories ) ) { $category_description = ''; // Initialize an empty variable $show_general_description = false; foreach ( $categories as $category ) { // Check if the category slug is 'pri' if ( $category->slug === 'pri' ) { $category_description = $category->description; $show_general_description = true; break; // Exit the loop after finding the category with the 'pri' slug } // Check if the category slug is 'air' if ( $category->slug === 'air' ) { $category_description = $category->description; $show_general_description = true; break; // Exit the loop after finding the category with the 'air' slug } // Add more category checks for other categories here // Check if the category slug is 'ready-to-paint' if ( $category->slug === 'ready-to-paint' ) { $category_description = $category->description; $show_general_description = true; break; // Exit the loop after finding the category with the 'ready-to-paint' slug } // Check if the category slug is 'stands-and-wall-mounts' if ( $category->slug === 'stands-and-wall-mounts' ) { $category_description = $category->description; $show_general_description = true; break; // Exit the loop after finding the category with the 'stands-and-wall-mounts' slug } } if ( $show_general_description ) { $product_name = get_the_title( $post->ID ); // Add descriptions for the new categories if ( $category->slug === 'ready-to-paint' ) { $general_description = "Your description for the 'READY TO PAINT BLANKS' category goes here."; } elseif ( $category->slug === 'stands-and-wall-mounts' ) { $general_description = "Your description for the 'STANDS AND WALL MOUNTS' category goes here."; } else { // Use the existing descriptions for other categories // ... } echo wp_kses_post( wpautop( $general_description ) ); } } ?>