Questions tagged [wordpress]

Consider using https://wordpress.stackexchange.com . This tag is for programming-specific questions about the WordPress content management system. Off-topic questions include those about theme development, WordPress administration, management best practices, server configuration, etc. These are best asked on https://wordpress.stackexchange.com .

wordpress
Filter by
Sorted by
Tagged with
-1 votes
1 answer
33 views

PHP function is having problems with content passed with HTMl tags [closed]

In my theme's functions.php file I have a string that generates surrounding HTML and gets content through the get_the_content() function The issue is that if the content being passed through that ...
Geoff_S's user avatar
  • 5,047
0 votes
1 answer
64 views

Why does my Wordpress loop keep timing out?

I currently have a WP website where users can sign up and listen to a selection of audios. I also have an iOS app that connects to the website, and allows me to push notifications from the website to ...
BEDev's user avatar
  • 709
0 votes
0 answers
360 views

How do I improve the speed of my cURL calls in PHP?

I'm looking for some help with this cURL problem I have. I'm experiencing slow response when I'm using the cURL function below. I have a list of about 40 ids that I pass to the function in a for loop -...
Kahlil N's user avatar
0 votes
1 answer
647 views

Split Wordpress megamenu submenu into two columns

I created a megamenu in Wordpress by adding the class mega-menu. Simple enough. My first submenu has 18 items which appear in a single column. I'd like to split this column into 2 columns. I ...
Libby's user avatar
  • 1
0 votes
1 answer
93 views

Remove hover from meta-title wordpress

I want to remove the hover effect from the meta "19 De Março De 2021| ReMederi| 0 Comentário", but I cant find it on the css. .post-box .entry-meta a { color: #7141b1; }
Heitor Marcondes Vaz's user avatar
-2 votes
1 answer
103 views

Blurry WooCommerce Product Images

I’m setting up a Woocommerce store and all the product images are blurry. I suspect it’s the issue described in this article: docs.woocommerce.com/document/fixing-blurry-product-images “Your image ...
Aisha Smith's user avatar
3 votes
6 answers
1k views

Wordpress WPBakery and Kaswara security Vulnerability

I have come accross the issue that one of the Wordpress websites I provide maintenance for would strangely redirect the user (unprotected by an AdBlocker) to scam websites. The redirection has been ...
Moldovan Andrei's user avatar
2 votes
0 answers
225 views

Woocommerce role: shop_manager > create_users - role dropdown

My woocommerce Shop Manager can add new users, but adding new user > role dropdown is offer only customer role. Is there some fix how to give permission to select from all roles not only "...
MSI's user avatar
  • 23
0 votes
1 answer
55 views

Exclude Tags from PHP Query

I have written the following query in my child themes functions.php file. Currently this works exactly as it needs to however I wish to extend this query such that it excludes specific tags. '...
Adam's user avatar
  • 213
0 votes
1 answer
72 views

Avoiding Chain Redirects on AMP Page URLs

I'm looking for help with a chain redirect issue, please. Desired behaviour: example.com/foo?amp redirects to example.com/bar Current behaviour: example.com/foo?amp redirects to example.com/foo then ...
Ash Loudon's user avatar
0 votes
1 answer
2k views

Wordpress default user registration form shortcode

I build a website in WordPress and want to show the default WordPress register form on a custom theme template. <?php do_action('register_form'); ?> Is there is any way to create a shortcode ...
Avinay Quicktech's user avatar
0 votes
1 answer
2k views

woocommerce Adding custom field under shipping table (my account-order view/ thank you)

With the help of these 2 posts (WooCommerce editable custom checkout field and displayed in formatted address)( Add additional fields to Admin User under Customer shipping section in Woocommerce), I ...
Bassam Radi's user avatar
0 votes
0 answers
122 views

How to delete updraft wordpress plugin with files of that plugin?

when it installed in a domain but not working for some unknown reason then simply delete the plugin and re-installed it but now it also the same situation it's not working even it not change its ...
Sayem Basar's user avatar
0 votes
0 answers
106 views

PHP download ready zip file which is placed on SFTP - wordpress

So I'm trying to get ready zip file which is placed on my sftp host. I'm using wordpress. To list zip files which are placed in specific folder I use this function: <?php function ...
Bartosz's user avatar
  • 11
0 votes
1 answer
247 views

How to change the read more text in WordPress articles grid

Back in the day I needed to change the read more text for the post grid ,so I used this code and its working fine. function excerpt_read_more_link($output) { global $post; return $output . '<a ...
Maryam stars's user avatar
1 vote
0 answers
118 views

Programmatically add an attachment sets a wrong permalink

I have a few hundreds of PDFs and I try to upload them programmatically in Wordpress and attach them in a custom post type with Advanced Custom Fields. This is part of my code where I create the ...
Tasos's user avatar
  • 7,447
-1 votes
1 answer
60 views

Check if data attribute of button is same as post class

I'm trying to create a post filter by adding a hidden-class to element that don't have a specific category. I have multiple buttons with a 'data-thema'-attribute, I want to check the attribute value ...
Thessa Verbruggen's user avatar
0 votes
1 answer
60 views

AMPPS Export WordPress To A Server

I'm using AMPPS to Build A WordPress site that I will export to my hosting after it is built. I'm using the AMPPS default username and password for the database. Will I be able to change these to ...
John Higgins's user avatar
1 vote
1 answer
2k views

WooCommerce - get shipping country for non registered user

Good morning everybody. I need to implement a method to subtract shipping costs from the total in case the shipping destination is included in a specific array of values. This is not a case of free ...
Simone Conti's user avatar
0 votes
1 answer
120 views

WordPress redirect to page if taxonomy is empty

I have a taxonomy option called "tipo_coche", tipo_coche contains convertible, coupe, compacto, etc.. All created with CPT UI, some can be empty. I need an automatic reirect to page "/...
gengen's user avatar
  • 1
1 vote
1 answer
391 views

wordpress get value of var_dump

Hi i try to get a variable value of wc_orders in wordpress. but i cant select i correcly dont. i had already var dumped the $order an tried various ways but have no logic to select the object and his ...
Artworkz's user avatar
0 votes
0 answers
67 views

Keep encoded link after order is completed in wordpress

Hey guys is there a way to keep encoded link after order is completed in wordpress? It looks good in cart and checkout: link But not so good in order review and admin order review link I use ...
Vytautas Vakulskas's user avatar
-2 votes
1 answer
272 views

Add custom taxonomy terms as classes

I'm having trouble displaying the post taxonomy terms as classes. I know I've done it in the past, but I can't seem to find it and don't remember how to do it. I have a custom taxonomy 'thema', now I ...
Thessa Verbruggen's user avatar
0 votes
0 answers
29 views

How to loop through custom post out return assigned categories?

I'm trying to loop through my custom post type and then get the custom taxonomy then output all categories assigned to each custom post.. When I var_dump() $taxonomies I'm getting the name of the ...
monsaic123's user avatar
0 votes
1 answer
50 views

Login to wordpress automatcally

i want to gain access to this website with valid username and password using php or http requests https://oldmanandgoodliar.pw/login/ is there anyway to do so ? filling the forms and login ...
Mamad's user avatar
  • 81
0 votes
0 answers
1k views

Woocommerce order checkout to whatsapp

i want to make a custom checkout system that redirect order details to whatsapp using this code: (PS, i got it from solusipress.com) class SolusiPress_WA_Checkout { protected $version = '0.9.2'; ...
mufarido's user avatar
2 votes
1 answer
860 views

Add a text to WooCommerce customer complete order email based on shipping and order note

I am trying to, based on shipping and if / if not the order note is empty, to add information to the customer complete order email. Two different messages based on if the order notes field is filled ...
user avatar
0 votes
2 answers
641 views

WordPress: wordpress/wp-content/themes/abdelkhalek/css/bootstrap.main.css?ver=5.7.1 net::ERR_ABORTED 404 (Not Found)

I'm invoke the bootstrap.main.js using wp_enqueue_style in functions.php but i show that in console and bootstrap.main.js exists and path correct. (index):32 GET http://localhost/wordpress/wp-content/...
user avatar
0 votes
1 answer
1k views

How to change payment checkout message in woocommerce

I want to change the description message for Paypal for my shopping site. I want to put Japanese here and I tried to change several things. This is the text what I want to change. I changed that ...
liming's user avatar
  • 232
2 votes
0 answers
54 views

Mysql row is empty when I update json value in the row

I am trying to update a json value in mysql. But I notice It delete de Old value in the row. $image = $wpdb->get_var($wpdb->prepare("SELECT id FROM users WHERE ext = $user_id")); $...
Jose's user avatar
  • 43
0 votes
1 answer
1k views

Include Bootstrap 5 Using jQuery Into WordPress

I'm trying to upgrade from Bootstrap 4.6 to Bootstrap 5.0 into my WordPress theme. Below is how I include BS 5, jQuery and some custom JS file. function add_theme_scripts() { wp_enqueue_style( '...
user3767773's user avatar
1 vote
0 answers
102 views

replacing images on click in javascript using php code for wordpress site

First time posting to stack overflow. Apologies if I'm not following correct conventions. I'm creating a site with a navigation menu that fades in when you click an icon. When the menu fades in the ...
Maddy's user avatar
  • 11
0 votes
1 answer
383 views

Got element by classname, onclick give new classes for two elements

I have two elements. One of them I want to get by class. When the element is clicked I want to give new classes to both of the elements or when clicked again, remove the classes. Doesnt give any ...
idz's user avatar
  • 3
1 vote
1 answer
584 views

Access FormData object in Wordpress Rest API Route, send via Ajax

I have an input field, which of "type file", this is where the user can add the image. I have already added the image into the "FormControl object". My problem now is how do I get ...
luna moonfang's user avatar
0 votes
1 answer
213 views

Redirect to custom contact form after product purchase

In wordpress, there is a plugin called woocommerce, were it enables the site to start selling a wide variety of products. I have a woocommerce shop set up, but I would need to increase its ...
tking's user avatar
  • 1
0 votes
1 answer
1k views

Wordpress & Nginx try_files problem with a website in a subdirectory with permalinks

So, I have a custom website, and a wordpress site located in a different document root, which should work from https://www.example.com/university-guru/study-abroad so, the WP site's location is /...
Istvan Prosinger's user avatar
1 vote
0 answers
77 views

Some other domain is redirecting to my wordpress website

My website was running just fine then one day i found some other domain was redirecting to my site. whenever someone go for that domain url that redirects to my site. the problem is the other domain ...
Muhammad Taqbeel's user avatar
0 votes
0 answers
190 views

Why displaying link of a video by using wp_trim_words in front end by setting a video in post content?

this is front end viewI want to trim the words of post content that's why I used wp_trim words. But when I include a video in post content then it shows the video link and trimmed text in the frontend....
Ratul Chakma's user avatar
0 votes
1 answer
518 views

Display WooCommerce category total sales count

I'm setting up a membership section on my site and I need to display the number of sales for a single category (including variable products). I'm using the snippet below I found here, added my ...
leandroprz's user avatar
0 votes
1 answer
85 views

wordpress database table name update

I am trying to read this error log so I can locate and update whatever is trying to find wp_posts and update it to wp_oeai_posts but cant for the life of me find any code looking for wp_posts in the ...
webmaster alex l's user avatar
1 vote
1 answer
352 views

How to convert headless wordpress href to <Link>

Not sure if this is possible but I am using Next.js with the WordPress API aka headless wordpress. I am outputting a Gutenberg area which consists of text and links. The problem with the links is that ...
user8463989's user avatar
  • 2,389
1 vote
1 answer
146 views

Show banner only on archive pages using PHP

I have a banner I would like to only show on archive pages on my website. I can't figure out the php code to do so. Here is what I have so far (obviously I've removed a lot of the code to make this ...
KatherineMichelle's user avatar
1 vote
1 answer
1k views

How to add current image number to each product gallery image in WooCommerce?

I am looking for a solution to show product images counter in my WooCommerce store. For example if my product has 5 photos I want to display under each photo: 1/5, 2/5, 3/5 etc. First what I was ...
Mike's user avatar
  • 189
1 vote
0 answers
193 views

How to Fill-up / rearrange empty space when flex: 0 0 50%; is used in a grid?

As I'm no programmer and no clue where to start, I'd like to ask you guys / gals for some input. In my project I'm using Flexboxgrid to create a semi-flexible portfolio grid. The before is the ...
Hielke's user avatar
  • 179
-1 votes
1 answer
84 views

add an icon after product price on woocommerce

Hello as the title says. i'm after a solution for wordpresss woocommerce with products that needs to have a added icon with a van. same as the following link Add an icon after product price on ...
Knightofmoon's user avatar
0 votes
1 answer
482 views

Wordpress page goes blank after form submit

I'm following a tutorial that creates form with Advanced Custom Fields that updates the user profile. When I press the submit button the page turns blank (white). Maybe you folks can see a line of ...
Ger's user avatar
  • 102
0 votes
1 answer
138 views

Foreach loop put just the first entry in table and afterwards its out of it

I have a little issue with my foreach loop. It loops thru the table but it displays just the first entry in the corresponding table. Afterwards all entries are outside the table. I want them in the ...
user avatar
2 votes
1 answer
1k views

Add Admin order notes sent to customer in WooCommerce My Account Orders list

Based on WooCommerce admin orders list custom column with order notes sent to customer answer code, I have tried unsuccessfully to add the following code to make a new column in the WooCommerce My ...
editcafe's user avatar
-2 votes
1 answer
405 views

Canvas Element Does Not Work in Wordpress

I have an issues is transferring the animated code and it's scripts over to the new development site. Here's a working copy that is not using Wordpress: Working Canvas You can view the source code to ...
EddieK's user avatar
  • 35
-1 votes
1 answer
332 views

WordPress url change, only for some categories

I have several categories in my WordPress blog. All posts are available through domain.tld/post-title. But now I need different urls for certain topics. Example: Blog > domain.tld/post-title ...
djredstorm's user avatar

1
500 501
502
503 504
3853