Category "wordpress"

Cannot remove action noindex in wordpress

I've done some research and run up with this code remove_action('wp_head','noindex',1); but apparently it's not removing the <meta name="robots" content="

Woocommerce redirect after add-to-cart error

I have being doing research for a few days but still cannot find an answer. I am using Woocommerce without the Single Product page. So I am using urls like htt

Wordpress create application password for user programmatically

First time working with Wordpress and looking to build a plugin. In the plugin I create a user to which I want to create a named application password. Is there

Wordpress Flatsome theme (UX Builder) not saving changes

I just installed the flatsome theme on WordPress on my namecheap server and I'm having a problem whereby the changes I make with the UX builder don't save. Ever

Wordpress : Load the whole Page using AJAX

I currently using Oxygen Builder in my wordpress, tryna load my other page using AJAX and I'm very very noob at this. Then, i've done some research about it fir

Additional price based on cart item count in WooCommerce

Based on "woocommerce change price in checkout and cart page" answer code that change the total price in checkout page, I have added some extra code to count th

How to skip cart page on woocomerce for certain products only?

I added this to my functions.php file : add_filter ('woocommerce_add_to_cart_redirect', 'woo_redirect_to_checkout'); function woo_redirect_to_checkout() { $che

Filter WooCommerce products with post__in and additional meta queries

I am trying to find products that are on sale (including product variations) in addition to another meta_query of price under X. The wc_get_product_ids_on_sale(

Apache won't bind to ANY port (OS 10048)

I can't get the Apache service to start. When I try to start it from services I get the following events in event viewer. The Apache service na

Adding hreflang tags automatically in WordPress subdirectory multisite

We have a WordPress MU subdirectory network setup: www.example.com - main website, USA, global www.example.com/uk/ - to display for UK visitors www.example.com/

Custom WooCommerce shortcode to display product image gallery

I have been tasked with duplicating a WooCommerce product gallery in an internal page (not a product page). As such, I decided to create a Child theme and write

Woocommerce Show default variation price

I'm using Woocommerce and product variations and all my variations have a default variation defined. I would like to know, how I can find the default variation

Woocommerce set all products to featured products from mysql query

I have a woocommerce store and I try to select from Mysql all products and set them as "Featured" products or set them as Non "Featured" products. I have found

wc_print_notices is not displaying any messages in woocommerce pages?

I have used default woocommerce templates for shop, cart and single page. I have not removed any hooks either but also I am not getting any message. Any Idea?

wp_wpr_rucss_resources table with huge size

Recently I was going through my tables in the wordpress database and found a table called wp_resource which is over 24GB in size. In wordpress or plugin documen

Wordpress - Elementor custom widgets - conditional controls

I'm creating my first elementor widget. I need to create 3 conditional controls: Select a (custom)post_type -> select a taxonomy belonging to the respective

Limit country to just on in dokan plugin

I am using dokan plugin and want to limit countries selection to just one in shipping page and setting page. I removed other countries from woocommerce i18n fol

how is it possible to have multiple articles from sub-site shown on main wordpress site

I have 8-9 subsites on the main site. I would like to have at least 2-3 latest articles/posts from each of the subsite blogs on the main site home page. is ther

how is it possible to have multiple articles from sub-site shown on main wordpress site

I have 8-9 subsites on the main site. I would like to have at least 2-3 latest articles/posts from each of the subsite blogs on the main site home page. is ther

WooCommerce: Add/display Product or Variation custom field everywhere

Currently using WordPress 5.1.1 and WooCommerce 3.5.7. My WooCommerce store has around 500 products, made up of simple and variable products. Each product natu