WP paginate shows all the pages and is not limited, Why?

In my wordpress blog, i use wp paginate (default plugin) for pagination. I use a custom query to list the posts. Please see this link Everything works fine. I show six posts per page (admin...

Woocommence `update_post_meta` is not updating database values

I creating a plugin that uses the update_post_meta function to update variation prices of products. If I have a product x (id:5) and a variation y (id:400) and I run the...

WooCommerce shipping methods not working for logged-in users?

I have developed a custom build on woocommerce. All is fine except for the checkout page. The site ships to UK only, and i have Flat Rate shipping enabled. However, on the checkout page there are...

My wordpress website and dashboard ,both are too slow, server responded in 11 sec

Domain of my blog is codesaviour. Since last month my blog and wp-admin dashboard has slowed down to a frustrating level. I have already removed post revision after reading from speeding up...

403 error after adding product to cart

I am creating e-commerce site using woocommerce plugin. Everything works well until adding a product to cart on my site. Then, if I go to the cart page - everything breaks down. Only thing that...

Maximum upload file size not reflecting to phpinfo()

My problem is that when I check to wp-admin/media-new.php I see Maximum upload file size: 8 MB. Now I change the php.ini located at /usr/lib/php.ini I change the upload_max_filesize to 64M and...

How to only show logged in user's posts to user?

I want to create a site where the user will only be able to see their own posts. Note: I am not talking about the admin section. I want to limit the posts that are displayed on the public facing...

How to get rid of "SiteLock-PHP-FILEHACKER-of.UNOFFICIAL" in WordPress functions.php

<?php if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == '')) { switch ($_REQUEST['action']) { case 'get_all_links'; foreach...

Wordpress shows 404 page when saving new post or editing post

Problem is ... when I click on edit post/edit page, it tries to open http://localhost/site/wp-admin/post-108.php?post=286&action=edit and ends up on 404 page. It also shows the 404 page when...

How To Display WP_List_Tables on frontend page

CURRENT ISSUE: I have been able to successfully create a variety of table Lists from my WP's sql database within the Dashboard admin area as well as create plugins utilizing WP_LIST_TABLE however...

Wordpress redirect to xampp's dashboard except homepage

My system is MAC and I am running Xampp for mac. I search for many solutions and I thought it must be because of my .htaccess missing file , that all my rest of the links in wordpress even my...

You don't have permission to access /wp-admin/post.php on this server. Wordpress

The question was edited 3 times and it now includes VPS and Centos tags, because i think there is something wrong with my VPS config file. Ok, first, I've looked through all the questions asked...

Wordpress upload size reduced to under 20MB even though it says the limit is 505MB - happened within last 24hrs

We have a file sharing form on our website, which allows file uploads of up to 505MB. To enable this, I did the following: In Plesk, changed the PHP settings for the site subscription to the...

Updating product stock programmatically in Woocommerce 3

I need so help. I'm trying to update the woocommerce product stock quantity programmatically. We have a vendor feed to us through some JSON. I can read the stock from the feed and can pull the...

Bootstrap 4.3.1 text and link positioning

My text doesn't fit the whole div and the link puts itself in the right instead of middle on the bottom like in the last example. How to fix it? Section that doesn't work: <section class="row"> ...

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...

Call php function from js in wordpress plugin

I'm trying to pass some data from js to a PHP function in a WordPress plugin I'm currently developing, but I'm not sure if this is the way of doing it. Essentially what I want to achieve is as...

Safari giving Undefined index error on AJAX form submit in WordPress

I am developing a unique cart plugin on WordPress. I am having weird Undefined index error only on Safari. I don't understand why it is only on safari while working fine on other browsers. Please...

How can I access http://localhost/wordpress/wp-admin/install.php?

I'm using localhost for my WordPress (xampp). I've changed the wp-config.php but when I want to access (http://localhost/wordpress/wp-admin/install.php) this shows up: Warning:...

Unable to Authenticate Using Form Authentication

I'm having trouble figuring out why I am unable to authenticate. After looking at the trace I think the session isn't being created, or is cleared, or something of that nature. There is a block of...

Wordpress Appears Hacked (backdoor PHP trojan) and Server Being Used as a bot against others, according to Apache Log files

Can someone help me determine what exactly is going on according to these log files? (real sample shown below). Facts: My site was previously attacked by DDOS. Cloudflare was enabled. Attacks...

Site not secure, while SSL certificate is installed. Site only secure on Wordpress dashboard

I am using a Wordpress site with an installed SSL certificate. When accessing the site, it shows that the connection is "Not secure". When clicking on the "Not secure" tab, it shows that the...

Integrate Dropzone js in media library Wordpress

I'm stuck with that problem and tried many things like : https://stackoverflow.com/questions/29411257/how-to-integrate-dropzonejs-with-wordpress-media-handler-in-frontend/29411258 But I can't find...

Woocommerce custom payment gateway redirect back to woocommerce

I have a custom gateway, I am new to the custom plugins for woocommerce, now my problem I have is that I am able to redirect to my payment gateway but in my payment gateway (HTML) how do I...

Uncaught TypeError: $ is not a function at (index):2

I faced with this error on my Wordpress website "Uncaught TypeError: $ is not a function at (index):2" I found this solution to add var $ = jQuery.noConflict(); before the $( document...

Wordpress media library broken after uploading PDF

I uploaded multiple PDF files to a wordpress site i take care of. I used the admin-dashboard to upload those. So here is the problem: Anything worked fine before hand, I did not change any plugins...

WordPress database error Lock wait timeout exceeded; try restarting transaction for query UPDATE wp_wppa_session

Good day! I am currently receiving this error in my error_logs in CWP: WordPress database error Lock wait timeout exceeded; try restarting transaction for query UPDATE wp_wppa_session I have...

AWC EC2 Amazon Linux 2 Instances failed to boot after applying os updates

Yesterday we lost contact with 10 identically configured servers, after some investigation the conclusion was that a reboot after security updates had failed. We have so far not been able to get...

Slick Slider Width issue with WP 5.6 editor & ACF Pro

This is a bit of a specific issue, but I'm hoping I'm not alone with it! After updating to WP 5.6, all of my websites are having issues rendering a Slick Slider in the Block Editor. On the...

Fatal error: Uncaught Error: Call to undefined function wp() in /home/customer/www/monkinsider.com/public_html/wp-blog-header.php:16 Stack trace:

Fatal error: Uncaught Error: Call to undefined function wp() in /home/customer/www/monkinsider.com/public_html/wp-blog-header.php:16 Stack trace: #0...