Month: January 2025

Einzelner Standortname abrufen

User $termstandort = wp_get_post_terms(get_the_ID(), 'standort'); get only single name Assistant You can extract a single name from the taxonomy term using this approach: $termstandort = wp_get_post_terms(get_the_ID(), 'standort'); if (!empty($termstandort) && !is_wp_error($termstandort)) { echo esc_html($termstandort[0]->name); // Outputs the first term name } This ensures that: 1. `wp_get_post_terms()` returns terms without errors. 2. The first term (`$termstandort[0]`) […]

Add Variation Dropdown WooCommerce

User add varitian dropdown value in woocommerce admin order row after order id in brackets Assistant You can add the variation details next to the order ID in the WooCommerce admin order list by using the `manage_shop_order_posts_custom_column` hook. Here's how you can do it: ### Steps: 1. Hook into `manage_shop_order_posts_custom_column` to modify the order ID […]

Disable Out of Stock Variations

User grey down out of stock variation option in woocomerce dropdown at proudct detail page Assistant To gray out and disable an "out of stock" variation option in the WooCommerce product dropdown on the product detail page, follow these steps: ### **1. Modify the Dropdown with JavaScript** WooCommerce does not provide a built-in way to […]

Hide Sold Out Variations

User greyed out variation option not hide from dropdown wocoomerce if its sold out Assistant By default, WooCommerce does not hide sold-out variations from the dropdown; it only greys them out. However, you can completely remove sold-out variations from the dropdown using a custom function. ### Solution: Remove Sold-Out Variations from Dropdown You can add […]

Database Import for Staging

User ##As of now I needs to complete import of live database to our demo server to check why that particular query regarding order status chagnge casusing time out site . Because at live site I can not perform query modification if needed directly , So currently Looking the way to import live db to […]

Figma Design Update Explanation

User It was designed as per figma , but I’ve just updated element to include location, that’s why its altered at that time Now it is working fine Correct above sentence Assistant It was designed as per the Figma design, but I recently updated an element to include the location, which temporarily altered it. Now, […]

API Multilingual Job Storage

User Api provide both language data , We can save jobs in both langauge and display front end based on language selection Correct above sentence Assistant The API provides data in both languages. Jobs can be saved in both languages and displayed on the front end based on the selected language.

Elementor Project Slider Widget

User Assistant You can add a taxonomy selection control to your Elementor widget by modifying the `register_controls()` method. Here’s how you can add an option to choose the taxonomy (`leistung`) for filtering `projekte`: ### Updated Code: <?php class Elementor_ProjectSliderWidget_Widget extends ElementorWidget_Base { public function get_name() { return 'project_slider'; } public function get_title() { return esc_html__( […]

CSV Post Export Issues

User function export_posts_to_csv() { ini_set('max_input_vars', 95000); global $wpdb; set_time_limit(0); ini_set('memory_limit', '15024M'); // Get category filter (if any) $catex = isset($_GET['catex']) ? intval($_GET['catex']) : -1; $sqlcon = ''; $sqlj = ''; if ($catex !== -1) { $sqlcon = $wpdb->prepare(" AND tt.taxonomy = 'category' AND t.term_id = %d", $catex); } else { $sqlcon = " AND tt.taxonomy […]

CSV Export Optimization

User function export_posts_to_csv() { global $wpdb; // Get category filter (if any) $catex = isset($_GET['catex']) ? intval($_GET['catex']) : -1; $sqlcon = ''; $sqlj = ''; if ($catex !== -1) { $sqlcon = $wpdb->prepare(" AND tt.taxonomy = 'category' AND t.term_id = %d", $catex); } else { $sqlcon = " AND tt.taxonomy = 'category' AND t.term_id != […]