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
0 answers
14 views

Random video header using WordPress and Elementor

I am creating a website within WordPress using Elementor. I want to make the header with a video background where the videos are played randomly from the multiple videos in the media library, in a ...
Krutika Desai's user avatar
-1 votes
0 answers
21 views

How to add ACF field to order, to cart, to admin and to email? And to cross-sells custom loop?

The field is simple, type text, called 'sub_title'. By design the product name was separated for 2 parts - common product title and before it subtitle. I tried that hooks, but I still don't see the ...
libertarian's user avatar
0 votes
0 answers
7 views

Why does the ACF Field not work in WordPress Divi Engine?

I am facing the issue that I cannot understand why I cannot use an "Advanced Custom Field Value" - ACF - within a divi social media module. I have to use a "ACF Item - Divi Machine"...
Moritz Steinbacher's user avatar
0 votes
0 answers
8 views

How to track affiliates sales on wordpress without woocommerce/products/carts?

Wordpress website and it sells a service, the payment collected by 3rd party payment provider link. This payment provider has no integration to cart/woocommerce/wordpress so the traditional affiliate ...
NW.'s user avatar
  • 41
-3 votes
0 answers
24 views

The website redirects any visitor to ads pages instead of our website and it's full of malware [closed]

The website redirects any visitor to ads pages instead of our website and it's full of malware WordPress[[enter image description here](https://i.stack.imgur.com/LMT1j.jpg)](https://i.stack.imgur.com/...
ahmed zaher's user avatar
-2 votes
0 answers
19 views

Problem with getting woocommerce data in another plugin

i am facing an issue and unable to find a solution may be you guys can help... i am creating a new plugin in which i need woocommerce products order and customer i have tried the below code but the ...
I AM A Hacker's user avatar
-1 votes
0 answers
15 views

Override element.style using CSS in Wordpress

I am trying to make this flipbook responsive to the height and width of its group because in the preview of the website it appears very small and not centered. I think I have to override the width and ...
Esteban Ruiz's user avatar
-4 votes
0 answers
28 views

Can someone help me with updating my Wordpress theme? [closed]

I’m pretty new to WordPress (used to get HTML5 templates and work from that), and I’m working on a new site for myself. I purchased this theme/template (https://themeforest.net/item/haar-a-portfolio-...
user24306383's user avatar
0 votes
1 answer
28 views

Woocommerce check if product attribute has archive enabled or disabled

I am trying to optimize my cache, and I need to check whether a product attribute has archive page enabled or not. If not, I don't need to purge the cache for that term's url. Currently, my caching ...
Mahle26's user avatar
  • 11
-2 votes
0 answers
17 views

Batch Number System and Lab Reports for WooCommerce Products [closed]

Do you have any recommendations on the most efficient way to dynamically link Lab Report PDFs and a Batch Numbering System to my products in a searchable method? I need to do the following: Implement ...
Prince Sinha's user avatar
-1 votes
1 answer
43 views

please I am having issues with my custom WordPress search plugin. I am trying to do an autocomplete from a JSON file [closed]

Everything is working apart from the auto fill functionality I'm developing a custom WordPress search widget that includes autofill functionality powered by AJAX and pulling data from a local JSON ...
John's user avatar
  • 1
0 votes
0 answers
10 views

How to style wordpress core/list with theme.json?

I try since a while to style the ordinary list block with wordpress theme.json. "blocks": { "core/list": { "color": { "text&...
Piiit's user avatar
  • 95
0 votes
0 answers
38 views

WooCommerce - Empty Cart Page Reload issue

I have an issue when i remove product from the cart and the page refresh to the empty cart page. I use this inside my functions.php file to modify the empty cart page : add_action( '...
tonarii's user avatar
  • 25
0 votes
1 answer
13 views

How to assign new custom PHP template file (page template) in twentytwentyfour theme of WordPress version 6

Earlier we do below process but now it's not working. not showing the template name in page add/edit sidebar . I found new steps from admin Appearance->editor but how to edit the file to add our ...
UnitedWebSoft.in's user avatar
-1 votes
0 answers
12 views

WCFM-Show Vendor Name Instead Of Product Name [closed]

Can anyone assist to change vendor-customer-direct-pay-option snippet to show the vendor name instead of the product name. enter image description here I need the Php need to show the vendor instead ...
Codia Cummins's user avatar
0 votes
0 answers
9 views

Connection Aborted on Wordpress API using Python requests

I generate blog content using Python, and I use WordPress REST API to automatically post it to my website. Until last night it was OK. But this morning, I got this RemoteDisconnected: Remote end ...
Arwan Khoiruddin's user avatar
0 votes
1 answer
22 views

Wordpress build function around query

I need some help with Wordpress rewrite rule and the query. What I want is if the user visit this link https:www.domain.com/catalog What I do first is making a rewrite rule so the user do not see a ...
Stefan's user avatar
  • 69
1 vote
1 answer
15 views

WORDPRESS HELP: An error is being displayed when I select Reading - Post - Select - to display blog posts

This is the error, I am getting: Warning: these pages should not be the same as your Privacy Policy page! I tried searching online to see if there was a fix but I couldn't find any. It seems that ...
Salma Khan's user avatar
0 votes
2 answers
20 views

How can I import a software installer (.exe) into the wordpress media library

I do not really want this available on the web interface and am content with having to ssh into the wordpress instance to do it, both to transfer the file in ( often large ) and to do the "wp ...
peterk's user avatar
  • 5,312
-3 votes
0 answers
16 views

My theme is active in local host then how to deactivate that theme from local host and activate it in live server [closed]

I have downloaded the scheme from Inverter, I used to use it locally, but now we do it online from the local website, now how can I do the same online? Currently my theme is active in localhost, how ...
darshika talaviya's user avatar
0 votes
1 answer
27 views

Wordpress shortcode with JS

I am working on a wordpress project and I'm completely stuck on something ... I have to put somewhere near the post (in a post grid page) the reading time of them. So I got to test laking a js script ...
Lilian Clus's user avatar
0 votes
0 answers
15 views

Converting WordPress "Redirection" plugin data to Next.js format

I am building a Next.js website with a headless WordPress back end. Historically I have always used the Redirection plugin for doing traditional WordPress redirects. I can easily export the configured ...
Alex's user avatar
  • 1,231
0 votes
1 answer
25 views

My plugin for Elementor works locally but not on prod

I'm currently working on a plugin for Elementor. This plugin adds a widget that is able to import 3D files like .glb or .gltf, and then display them with the lib ThreeJS I started web dev 1 year ago ...
Mxou's user avatar
  • 1
-1 votes
0 answers
13 views

How to use the same function of a language switcher in Wordpress but with seasons? [closed]

in Wordpress I created 2 versions of each page of my website. For example : I have the page "contact" in a summer version (let's call it V1) and the page "contact" in a winter ...
Alice's user avatar
  • 13
1 vote
1 answer
38 views

filtering by brand in WooCommerce

i am trying to create woocommerce filter plugin filtering by brand but it is not working correctly. i have the product setup correctly but it is not fetching the correct result . like i have one ...
maztt's user avatar
  • 12.5k
0 votes
0 answers
11 views

Gravity Forms User Registration - Automatically add user to group based on Group ID passed by form

I am running BuddyBoss which has a number of Groups set up. I would like to create a registration form which can be used dynamically by each of these groups by using Gravity Forms User Registration ...
junglist's user avatar
0 votes
1 answer
38 views

WordPress redirect only one URL to a Laravel site

I have a WordPress site, https://dogx.hu, and a separate Laravel eCommerce site. My primary objective is to redirect from the "/shop" URL of the WordPress site to the Laravel site. In other ...
devdani7's user avatar
0 votes
1 answer
20 views

Tagdiv Composer crashes when adding woocommerce shortcode

I am use wordpress and using the newpaper theme. I added the woocommerce shortcode ([products limit=”4″ columns=”4″ orderby=”id” order=”DESC” visibility=”visible”]) and got this error. If I save and ...
Tiến Hoàng's user avatar
0 votes
0 answers
29 views

Woocommerce Run Once For All Users: wc_update_new_customer_past_orders

I'd like to run a PHP snippet from time to time to link Woocommerce Guest orders to Wordpress Users with the same email. I'm attempting to run the function wc_update_new_customer_past_orders for all ...
stephenla's user avatar
0 votes
1 answer
26 views

Custom WordPress REST-API endpoint returns unicode umlauts

I use the WordPress REST-API to upload a csv file and return the content of the file as an HTML table. As far as I understand the documentation https://developer.wordpress.org/rest-api/extending-the-...
Andy Paka's user avatar
0 votes
1 answer
32 views

Adjust container height based on content within iframe

I'm trying to figure out how to dinamically adjust iframe height based on content. I don't want to see a scrolling behaviour o the iframe on mobile, it's not very UX friendly. I've tried to set 100% ...
Simone Apicella's user avatar
0 votes
0 answers
14 views

Is there a resolution method to Public visibility error in wordpress

Warning: The magic method Predic_Widget::__wakeup() must have public visibility in C:\xampp\htdocs\kingsmart\wp-content\plugins\advanced-product-search-for-woo\lib\predic-widget\predic-widget.php on ...
Gabriel Fayoyiwa's user avatar
0 votes
1 answer
20 views

How to set rewrite rules for custom post type and taxonomy

I have custom post type "product" and its taxonomy "product_category". I need URLs like this: https://example.com/products - page with tax query. https://example.com/products/...
Александр Курлаев's user avatar
0 votes
1 answer
19 views

Using custom template for page doesn't allow me to use the Divi builder feature

I basically extended the Divi theme and this is one of the files that are there. This file creates custom template, in order to fetch some data and display it, but rn the Divi builder is not available ...
Ilia Popov's user avatar
0 votes
0 answers
17 views

wp_get_attachment_image_src not returning and image on some posts(videos)

wp_get_attachment_image_src not returning and image on some posts(videos)in Wordpress. I have a bookmarks section on my website so you can bookmark/save your favorite videos. The manually uploaded ...
James Burns's user avatar
-1 votes
0 answers
32 views

Get order total in Woocomerce [duplicate]

I'm relatively new to this community and I'm finding myself a bit lost. I was hoping you could assist me. While I'm not an expert in programming, I do have a basic understanding of it. I manage a ...
slyr's user avatar
  • 1
0 votes
0 answers
12 views

How do I check if the current page id matches in the template_redirect hook of a Wordpress plugin?

I'm working on a WordPress plugin and inside the template_redirect callback, I'm trying to check the current is part of a list of pages and then do a redirect. However, all the options I've tried ...
joel_ace's user avatar
  • 123
1 vote
0 answers
20 views

How do I add filters to a custom post type?

I have a custom post type in WP and the posts are displaying on the page but my filters are not linked to the CPT. My filters are being pulled from 'Posts' and not the CPT? There are a few custom ...
Lauren's user avatar
  • 61
0 votes
0 answers
52 views

JavaScript code for web-based audio player application designed to play live radio streams doesnt work on iphone and mozilla firefox

In Wordpress with Hello Elementor, Elementor and Elementor Pro I wrote a custom web-based audio player to play live radio stream but it doesnt work on iphone and Mozilla firefox in all devices. I ...
Giannis Kakavoulis's user avatar
-1 votes
1 answer
14 views

Stray symbols appearing in WordPress byline after upgrade to 6.5.2

I’m trying to solve a minor but really annoying glitch after upgrading to WordPress 6.5.2. Specifically, several random characters are now appearing in the byline for each blog post on my website, per ...
James Picerno's user avatar
1 vote
0 answers
19 views

Solarium Solr SSL Issue

I am using Pantheon's hosting environment for WordPress websites. I am building a custom plugin that integrates Solr into the WordPress search. I am using docker and was able to spin up a Solr server ...
Cameron's user avatar
  • 799
0 votes
1 answer
17 views

Not able to see wordpress dashboard after changing the localhost name

I am developing a website on WordPress Localhost (i.e. on my laptop only). (1) Today I changed the localhost name from "marathishala" to "8vimarathi" from wordpress menu itself. (2)...
Ajit's user avatar
  • 11
0 votes
1 answer
32 views

Executing shell script with a cron job

I can't execute a shell script with a cron job on WordPress (knowing that I can't use crontab). I can execute it with 'sh my_script.sh', but not with a cron job. I've tried various scripts like this: /...
mat4's user avatar
  • 1
0 votes
0 answers
9 views

Remove some option in Product data meta box Wordpress

I am making a ecommerce website using Wordpress, Woocommerce and Astra theme. In the "Add new" page there is a meta box "Product data" with 4 types of product: Simple Product, ...
Nguyễn Đức Minh's user avatar
0 votes
0 answers
14 views

imported ACF from rest api not show in post

i'm trying to create post from wordpress rest API. I have a custom post type books and fields for this post type. My custom endpoint is /wp-json/wp/v2/books and work good for POST and GET Methods. The ...
JasSum's user avatar
  • 1
0 votes
0 answers
31 views

Why I can't edit my mail template in WooCommerce? [closed]

I have a problem when I want to edit the template for sending emails in my WordPress, in this case is when a new order is generated... it appears to me like this; While my other subdomains, I can edit ...
Melissa Ridente's user avatar
1 vote
0 answers
15 views

Authorize.net with woocomerce capture shipping cost later

I'm using Authorize.net payment gateway with Woocommerce (Wordpress). We are getting customers pre authorized for order value and we want to add shipping cost and tax amounts later on. WooCommerce ...
Dhan's user avatar
  • 509
0 votes
1 answer
24 views

Combining search results from multiple WP_Query objects in WordPress

I'm working on a WordPress project where I need to perform a search across multiple post types and taxonomies, and then display the combined results. I've created separate WP_Query objects for each ...
Pointless's user avatar
0 votes
1 answer
16 views

A WordPress admin plugin menu link keeps erroring out

I have added a user and a new user role (SiteDeveloper) to a WordPress account for a developer to work on a project that has a customized Divi theme. They can see the Divi plugin link at the bottom of ...
user24238855's user avatar
-3 votes
0 answers
33 views

Need to create list, every li needs to be a link to a pdf page [closed]

so one client asked me if i could make a dropdown list on his website, the dropdown list is not a problem the problem is that every <li> needs to be a link to a different page of a PDF file. The ...
Msacco's user avatar
  • 1