Category "wordpress"

Statement that checks whether a URL contains a particular path?

Is there an if statement that allows me to check whether a URL contains a particular path? In my particular case (using wordpress), I'm trying to check wether

Reorder attribute dropdown terms in Woocommerce single variable products

In the Woocommerce single variable product pages, I would like to change the order of the sizing options on the related drop-down menu. Actually It is like thi

How do you add custom field to woocommerce product attribute

I want to include a simple in the edit attribute form. (/wp-admin/edit.php?post_type=product&page=product_attributes&edit=55) Is this possible? Everyt

add_action() function in wordpress not working [duplicate]

I am new in Wordpress and I am writing this code in my functions.php but it isn't working. This is my code: <?php function myFunction(){

React function based component wont return component inside nested map function

I am trying to output different components based on the inputType, however the component or anything that goes into the DOM does not render (aka console.logs fi

how to add custom link on wordpress admin sidebar

How to add custom link on wordpress admin sidebar without using plugins? For example, i want to add "Google.com" link. How should i do this? I tried this: Adde

How can I fix the utf8 characters problem in amp?

In the amp version of my site, Persian language characters are displayed in an incomprehensible way. This problem exists on one server but does not exist on ano

How to get Custom Field data on WPGraphQL

How to get Custom Field data on WPGraphQL I add a custom field for upload featured image for category. Now I want to get this value on WPGraphQL Query.

How can I insert interactive content into Wordpress CMS?

I'm trying to insert interactive, mobile responsive graphs and charts into WordPress. My original methodology was to use Altair/Folium to generate a HTML render

Fix CSS to add icon to Elementor Menu

I uploaded icons to my menu using class and css code (Wordpress + Elementor), but I can't remove the space between the icon and the text. Used the following cod

Video js for wordpress

how to integrate video.js & VAST, VPAID ADS plugin to wordpress ? I tried to paste the files in header.php file , but dosent work ? Please guide on any pl

WordPress ACFNotice: get_field() - We've detected one or more calls to retrieve ACF field values before ACF has been initialized

My WordPress website has this notice below, how do I fix this? Notice: acf_get_value was called incorrectly. Advanced Custom Fields PRO - We've detected one or

Override plugin file in sage wordpress

I am trying to override plugin file located in path/filename.html.php by sage theme , I have moved the file under themedirectory/path/filename.html.php but that

How can I hide stripe from WordPress admin side for specific user role?

I am using User Role Editor and trying to hide this stripe gateway for specific user What should I check in settings of user editor role so that I can see ord

Apply woocommerce coupon only to the cart total, not to the tax line

I am working on a WooCommerce site. When I apply a coupon on the checkout page, it automatically applies to the tax as well. I only want the coupon code to app

How to display WordPress Post LIST Rest API By Category? ReactJS

I am new to ReactJs and Need to implement wordpress Rest api, I am trying to figure out post list by category, My code is here. getPostsByCategory = async () =

Wordpress admin only shows text

my wordpress admin only shows text, What maybe the cause of this and how can i fix it? i attach a photo of the error

React Native create helper

I am very new to react native and try to create my first app. I now want to create functions to get data from my api. How can I create a file with several funct

WooCommerce - unset "<product> removed notice…" on cart page

actions and filters. On my WooCommerce site I get the following message when I remove a product from the shopping cart: "<product name>" removed. Undo?

VS Code highlighted all my wordpress function name

I am using PHP Intelephense(version 1.3.7) which is the latest version and my VS Code is up to date There was no problem before but a few days ago, it keeps on