Category "wordpress"

How Can I Do LIMIT 1, 2 In WP_Query

I am using Wp_Query method and I want to learn is there any parameter to limit my query. I try to use LIMIT 1,2 in WP_Query. Thanks for advance! $args = array

WooCommerce coupon usage restriction by allowed user roles

we need to make an automatic discount coupon to be applied if the current user role is ( vendor ), we achieved that by creating a normal coupon then used the sn

Adding custom fields to woocommerce checkout page disables place order button function

I'm trying to add this basic code to add a new field to the check out page. However, it seems to disable the place order button. Here is the code: /** * Add th

Page has horizontal scroll which I can't get rid of

Please see https://simplybikestuff-staging-com.stackstaging.com/ I've gone through front page and removed code snippets to try get to the issue, but still no -

Set shipping class based on Tag or Attribute Woocommerce

I need to update Shipping class based on Tag, example all products with tag "Fresh" shoud have shipping class "fresh" . i try this, but without results.. add_ac

How can I solve this problem in my WordPress site Fatal error: Cannot redeclare get_rs_plugin_url()

I am trying to install Slider Revolution, but it shows the error below. Please help me resolve this issue! Fatal error: Cannot redeclare get_rs_plugin_url() (p

Woocommerce Checkout - Add conditional field required if one field is filled

I want to add a conditional requirement on the Checkout page. Because a lot of people fill the Name of Company without they are a company. And I want to add to

Woocommerce Rest API: woocommerce_product_invalid_image_id

Woocommerce version: 4.1.0 I am trying to create a product with categories and images via the API but I get this error : {"code":"woocommerce_product_i

How to Change TablePress row length for admin page

I am using a TablePress of wordpress library and try to display 100 rows per page in admin account , Not user page. How can i do that ?

Put content of wordpress page inside div

I am trying to put content of wordpress page content inside div but that does not work , simply trying ot do that echo '<div style="display:none">' . the_

Display specific shipping method if woocommerce product has specific acf field value

I need display specific shipping methods only if specific acf checkbox in product is checked. I created custom field viac ACF plugin with name "zpusob_prepravy"

How use Advanced query by Oxygen builder whith ACF

I use easy posts by oxygen builder. I'm trying to filter posts by field from the ACF. To do this, I use Advanced Query, but I can't figure out the settings. In

Add restriction to WooCommerce coupons by allowed user ID

Let's say i'm using this code to create a coupon: $coupon_code = 'CODEOFF'; $amount = '10'; $discount_type = 'percent'; $coupon = array(

WordPress Custom Background design

I would like to know how to create a custom background. There is currently an active site, that i am trying to figure out how i can do the same or similar http

WP Rest API - Upload image to WP using Restsharp

I have a problem uploading an image to Wordpress from a VB .NET project (using Restsharp). I create the client and the request for this, I added a header with t

args[max_input] woocommerce if statement confused

Cant seem to figure this out with if statements. Wanting it to show QTY 4 unless stock available is less than 4.. So far I have this.. function wpse_292293_quan

How to export WooCommerce order

I have one scenario , in which I only have a database dump. I have to write SQL query in PHPMyAdmin to get ALL the WooCommerce orders , and then EXPORT CSV from

WooCommerce Product Addons - append image to product addon field

I actually struggling with WooCommerce Product Addons plugin. The result which I want is to give possibility that woocommerce product addon fields (checkboxes t

unable to update theme options of Elessi Theme

I’m using Elessi Theme Version: 4.2.4 By NasaTheme. I’m not able to update any theme options. only text is written and I'm unable to click any optio

Wordpress SMTP plugin for GMail - getting App not verified Error

Just trying to Authorize WP SMTP with GMAIL. Went to Google Cloud Platform and created a project for my very simple web page with a contact form (WPForms). Ever