Browsing Category

Wordpress Mysql

How to get weight of the single product in woocommerce?

global $wpdb,$productname,$quantity,$total,$price,$product; global $woocommerce,$product; $items=WC()->cart->get_cart(); foreach($items as $item => $values) { $cart_contents_count = WC()->cart->get_cart_contents_count(); if($cart_contents_count !=0){ $productname = $values['data']->get_title(); $productweight = $values['data']->get_weight(); $quantity = $values['quantity'];

$wpdb select prepare statement

I am stuck on fixing a serious issue that took too much time than it should. I know it might be a small thing, but

Import SQL data into MySQL database for wordpress login

I own a SQL database that contains about 6000+ user login and that supports a web application. I want to use the same login for

how to change the fusion buttons name?

I’m using fusion builder plugin in my site. and i create a fusion buttons. that buttons name is displayed “Get started” in desktop view only.

Display code dynamically in wp footer based on value in db

I’m using a wordpress plugin to display real estate data. I need to display a certain snippet of code in the wordpress footer when a

How can I delete all <div some_attributes="values"> from wp_posts content table in mysql

I have a wordpress site with wp_posts (content) over 1GB data. there are some content with or only I want to delete the Total tag

MYSQL Backward compatible to 5.1.1?

I have a WordPress site that was developed on a server running the latest version of MYSQL, however, I’ve just found out the host server

I’m trying to get data from database from php file

I am new to wordpress and cant figure out a way to grab data from the database. I have set up a new php file.

MySQL Not Working With PHP after PHP Update [duplicate]

This question already has an answer here: Php – Your PHP installation appears to be missing the MySQL extension which is required by WordPress 9

SQL – Replace value of table from another table value with condition

i have table look like this: ID post_title post_type ------------------------------------------------------ 1 product A product 2 product A - Size S product_variation 3 product A -

SQL – Replace value of column from another column value with condition

i have table look like this: ID post_title post_type ------------------------------------------------------ 1 product A product 2 product A - Size S product_variation 3 product A -

WordPress Custom Category Show image

I Have a Problem, I am trying to show a country Flag on different custom posts in a category, the code i am using works

How to get thumbnail URL with SQL Queries in WooCommerce

I want to get the thumbnail URL from SQL query. I tried this SQL query: p.ID, p.post_title, meta_value, t.name AS product_category, t.term_id AS product_id, t.slug

wordpress select query not working

I am struggling with a select query for wordpress, which is not working. The weird part is that I have 2 select queries, 1 at

How to add column to wp_post table in database?

I have a database named event-listing-db which contains a table wp_posts. Also i have a function for creating a form with method post with the

Importing csv to wordpress, sql doesn’t seem to be working

So I am attempting to create a simple interface to upload a csv file to the wordpress db and then pull fields from it to

Back to Top 145132 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising