I’m a beginner and I’m trying to write a WordPress Plugin in PHP to auto-update content on multiple pages. I managed to make it work, it updates correctly, however it breaks multiple page options (controlled by the theme). I believe it’s caused by the wp_update_post() function. I’m loo…
Tag: wordpress
WordPress site hacked redirect
i have a wordpress website and i saw that when i try to view the source code with chrome its show me this (look at the code): so i search it in my files and found a file called lt_ that has that …
Add incremental number before item name on WooCommerce order emails
I have a WooCommerce store and everything is working well. But I would like to add a number in front of every item name when an order is placed so I can put numbers on the box so the customer knows which box contains what product. (I only have 1 product but the custommer can customize that product with a
Code randomly choosing div class after else
I have my first half of the code which is supposed to be post with thumbnail in classes. One is class item a and other is class item b. But after “else” the code takes the same class item a even if I haven’t put it around the code. Why does this happen? The first article is with thumbnail an…
Add a new column with author name to WooCommerce admin coupon list
Yesterday we had the situation, that someone ask my “Who created this coupon?”. Unfortunately WooCommerce by default does not display the creator of the coupon in the coupon overview where all coupon are listed. What I try to find out is, how can I add a new column with the author name in the WooC…
How can I loop through all categories to display each category post separately?
I’m developing a simple wordpress site. I’ve created a home page named home.php and trying to dynamically display posts separately according to category. the code is the following: But, no post is displayed like the following: So, how can I display my posts according to category dynamically by for…
Hot to add subcategories under category element in woocommerce flatsome theme WordPress
I’m trying to set up e-commerce website. Ran into a problem with Categories element. I want the element to represent not only categories, but also subcategories below itself. I also cannot edit page …
WordPress second page pagination not showing posts
I’ve been trying to add numeric pagination to my custom wordpress theme. I have run into a problem where I can’t see any posts on second(or third page). I have my page-archive.php file, index.php, single.php files all set up. It should be everything that a blog site needs? I’m a bit confused…
How to change all my account endpoints urls in WooCommerce
I’m using Woocommerce Version 4.8.0 I have a problem with my account page I want to change all the URLs like the image down below: I have found on stackoverflow the solution for it but the code change only one URL not all of them Any help? Answer All related endpoints slugs can be found on WooCommerce s…
WordPress custom pagination shows same posts on every page
I have been trying to add custom numeric pagination to my custom WordPress theme. Everything seems good so far but the problem is that every page shows the same 3 posts. Is there something I should consider doing while building my own WordPress blog theme. Right now I have my page-archive.php and single.php f…