Categories
Development Plugins Wordpress

WordPress Gutenberg PluginDocumentSettingPanel not working with controls?

I want to add a custom meta field to the gutenberg document panel and used this doc. For the custom meta field I used this tutorial. The problem I have occurs when trying to put them together. Here is my code so far: const { __ } = wp.i18n; const { registerBlockType } = wp.blocks; […]

Categories
Development Plugins Wordpress

update_post_meta and update_field not working without any error received

I am working with a wordpress site that imports all data from API to the site automatically via cron job. However, I’m now on the part of saving the field data from the API. The problem is update_post_meta and update_fields are both not working. I already tried interchanging between the two methods of saving but […]

Categories
Development Wordpress

Pseudo element after heading showing icon that is dynamic

Hi there I’m making a wordpress music site. I have a heading which is dynamic and linked to ACF on my singular template. Now that heading is an single/ album music title. My idea is that if the track has explicit/ strong language i want to put and icon (E) ::after the title and it […]

Categories
Development Plugins WooCommerce Wordpress

Override woocommerce files from includes folder to child Theme [on hold]

Override Woocommerce files from includes folder(woocommerce\includes\widgets/class-wc-widget-layered-nav.php) to child Theme(wp-content\themes\twentyseventeen-child/woocommerce\includes\widgets/class-wc-widget-layered-nav.php). How can I override Woocommerce files from the includes folder? I have tried but its not working. Please help. Shop or category page left sidebar color, size, etc. have many attributes. Colors under 10 Colors options and Size under 10 size option, its showing through widget. […]

Categories
Development Wordpress

Error 404 all pages except home (can´t access from the wordpress dashboard either)

After the migration of my website to the google cloud compute engine host I got error 404 on all pages except home, even on one I created after the migration directly on compute engine wordpress, I already updated the permalinks, changed permissions on .htaccess file from Filezilla to 777 but error 404 remains (i can’t […]

Categories
Development WooCommerce Wordpress

Failing to add meta information on the woocommerce cart page

function woo_cart_item_data( $cart_item_data, $product_id, $variation_id ) { if( isset( $_POST[‘option_1’] ) ) { $cart_item_data = get_post_meta($product_id, ‘_number_field_1’, true); } return $cart_item_data; } add_filter( ‘woocommerce_add_cart_item_data’, ‘woo_cart_item_data’, 10, 3 ); I want to add some information on the cart page: This is the other part of the code → // Add selected add-on option as custom cart […]

Categories
Development Wordpress

WordPress: Conditional / Page Specific Menu

I’m creating a website with Divi builder. I’m currently editing the header.php file and I’m having problems with applying a conditional menu. I’m currently using the primary menu for one page and the secondary menu for the other. Both work perfectly fine in desktop view but in the mobile dropdown, all items from both primary […]

Categories
Development Wordpress

Next/previous page link on template receiving a notice

I wanted to have previous and next buttons on certain template pages built in WordPress. These pages are child pages, so should not go to it’s parent or another child. After reading numerous posts and looking at the code on WordPress and here. I’ve come up with the below, but am receiving a Notice: Undefined […]

Categories
Development WooCommerce Wordpress

Change “reply to” email header in Woocommerce for New Order and shipped email notifications

I am trying to add a filter to change my New Order and Shipped emails reply-to addresses for customers only. I tried using this solution Change "reply to" email address in all Woocommerce emails notifications. It works for the customer but now the store owner email doesn’t get any New order email. I suppose that […]

Categories
Development Domain Wordpress

Domain change: redirect 301 with htaccess does not work

I transferred my website from olddomain.de to newdomain.de and wanted to redirect every page of the old website to the new website (e.g. olddomain.de/contact -> newdomain.de/contact). When I enter the main page of the old website in the browser, I am redirected correctly but all other pages are not redirected. I tried a lot of […]