Can Wordpress be replaced by a Framework like Django or Ruby on Rails?

I consider myself a well trained WordPress template developer, and i recently started to read books and documents about web app frameworks, particularly Django and Ruby on Rails. I didn't know any...

Cant login to my wp-admin after switching to SSL

I recently installed SSL certificate for my wordpress site(http to https) and now I'm unable to access Wordpress Admin. It refreshes the page and I am not logged in. Is there something I forgot to...

SMTP server error: Verification failed for 550-No Such User Here 550 Sender verify failed

I'm using Configure SMTP plugin for wordpress, when I used it in a local server (localhost) it works properly and send me the test email which confirms that it is working. But when I used it in a...

Changing Port number in WordPress blog

First of all I installed wamp server on port 8081 (Because there was IIS on 80). the word process was installed successfully and blog was running smoothly. Now I stopped the IIS and set the apache...

Get Wordpress Child Theme Path in Wordpress

I have a parent and child theme. In my child theme I declared a variable CHILD_DIR so I can add custom JS and CSS files to the my child theme's folder structure. I did this in my functions.php...

I have this error in woocommerce "Gateway Disabled: PayPal does not support your store currency"

I have this error in my woocommerce web site: Gateway Disabled: PayPal does not support your store currency. Any one have specific solution for this? I am using currency Saudi Riyaal(SAR) and...

How to add rel=canonical tag in Blogger

I have a blog: http://blog.companyname.com from blogger.com. I have a few articles there. I also have a blog on my website http://www.companyname.com/blog on wordpress. I have the same articles...

Visual Composer custom shortcode template - custom_markup display user input

I have created some shortcode elements. Now I want to customize the look of the elements in the backend editor. From the description of the wiki of VC-Pagebuilder, I get out that I can use the...

Create a medialibrary in Laravel PHP inspired by WordPress

At the moment I am working on a medialibrary in the Laravel framework. I am looking at WordPress with a users-experience point of view. The tab Media Library shows the images which you can...

WooCommerce Wordpress plugin Issues

For some reason.. I am getting two cart totals on my CART page.. No errors in teh debugger. Here is the image There are tons of different files for woocommerce.. Here is the cart-totals.php page....

What to use for an app that allows to play music based on geolocation?

I have to create an app or a web page that will show you your location on map and based on your geolocation (e.g. close to a museum - classic music) will play a certain song from Spotify, or users...

Load the Latest Posts by Category in a div via WordPress Menu using ajax

I want my index.php with a horizontal list of category names on the top and when i click on any category name, it would display latest 10 posts in index page on specific div container without...

file_get_contents not outputting svg

I'm trying to grab an svg file with php and output it onto a page. Site is built on Wordpress. <?php echo file_get_contents("site.com/wp-content/themes/oaklandcentral/img/fb_logo.svg");...

WordPress Redirection plugin to include query parameters in target URL

I'm using the WordPress Redirection plugin to redirect old landing pages to a new domain. I'm able to match URLs including any query strings and this redirects 100% to the new...

Change default order status for COD payment gateway based on user role in Woocommerce

In Woocommerce, when the payment option is COD, the orders go directly to the "Processing" state. Source: https://docs.woocommerce.com/document/managing-orders/#prettyPhoto I need this to work...

Change order notes checkout field placeholder in Woocommerce

In woocommerce, I am wondering how to remove from the "Order notes" checkout field placeholder this text "e.g. special notes for delivery", as my store does not ship products and it just sounds...

Shipping cost based on cart total weight in Woocommerce 3

In my Woocommerce Webshop I do have different Products. I would like to have shipping cost calculated on total cart items weight: from 0 to 6 Kilos the cost is 5 €, from 6 to 12 Kilos the cost...

WordPress Editor not updating files: Unable to communicate back with site to check for fatal errors

Hello fellow developers and problem-solvers. I've run into an issue with updating the header.php file in a WordPress website. Firstly, I tried updating the file manually through C-Panel -> File...

Change COD default order status to "On Hold" instead of "Processing" in Woocommerce

I need help with a problem-related to plugin "WooCommerce Pay for Payment" which counting some extra fee in shipping. Problem is, that this plugin sets automatically "processing" status in order...

Remove applied coupons when user leaves the checkout page in Woocommerce

I have a website using WordPress and Woocommerce with a checkout page (mysite.com/checkout) where you can enter a promo code and get a discount on a produc. Is it possible to reset the coupon once...

How to update wordpress translations via wp-cli

I'm using docker with the wordpress:cli image to perform many actions like updating, activating themes and plugins, etc, on the system. I come up with a brand new updated system that has...

How to redirect user after a callback of API EndPoint in WordPress?

I'm creating a payment gateway in woocommerce. After sending a request to payment processor server and return Success as a status code. The server will send a GET request to an EndPoint of my own...

How to build a load more button and a filtering system with ajax on wordpress?

I managed to build a ajax load more following this tutorial. I managed to make it work for my blog post on my blog page. So I didn't change anything. Now I try to make the same for my custom post...

How to display the product weight in kg, if more than 1000 grams

In Storefront theme, I use the code below that change the formatted weight from 1000g to 1kg: add_action('woocommerce_after_shop_loop_item_title', 'show_weight', 10); function show_weight() { ...

Switch product image on hover on WooCommerce archive page

Is there a way (maybe via functions.php) to change the product-image in woocommerce shops (archive page) on hover with the first attached gallery image of the product? I cannot find how to target...

Wordpress: Elementor Custom Query Filter - show only future events

I have a custom post type 'events' and I would like to create a Custom Query Filter 'kls-event-liste' for Elementor (https://developers.elementor.com/custom-query-filter/) that only shows upcoming...

How to solve Duplicate entry '0' for key 'PRIMARY' in Wordpress?

my website running perfect but today 1 order is placed by the customer, and I am getting this error in my website. Here is the screenshot of error error is here.. Fatal error: Uncaught...

WooCommerce: Order status based on Payment methods

On Woocommerce we have the option for BACS payments. Some orders are coming through as "Paid" and some aren't. I can't understand why as they are using the exact same payment method. The two...

WooCommerce php 8.1 + WordPress 5.7.2

I have an issue with using new PHP 8.1 on WordPress 5.7.2. Everything work just fine, until turn on WooCommerce 5.3.0. Then whole site fall down. Here is error message what I'm getting: Fatal...

How to change product Image when variables are selected in Shop and Archive Pages?

I use this hook to show variations on the shop page. However, the product image does not change when a variable is selected. It works on a Single product page. New to WordPress and PHP, I have...