Skip to main content

Questions tagged [php]

For questions about the server-side programming language that the WordPress core, plugins and themes are written in. Questions about using PHP outside a WordPress context are off-topic but might be asked on Stack Overflow.

0votes
0answers
15views

Prevent extract music artwork while uploading

Is this possible to prevent extract musics artwork while uploading? I want to save audio file only, not its artwork. I couldn't find any post related to this issue on internet.
Bahman World's user avatar
0votes
2answers
26views

How to return all data from a grouped metabox(cmb2)

I have a grouped metaxbox values from cmb2, when I return it to display output, it shows only one of them, but actually it has four value stored. How could I display all grouped metabox value? Here is ...
user9637601's user avatar
0votes
1answer
24views

Custom Script in functions.php does not work on mobile [closed]

I am trying to create a small script that adds a "Cash on Delivery Fee" according to some check. I have managed to get it working on desktop, but when I check on a mobile device, it does not ...
LittleDTLe's user avatar
0votes
1answer
36views

_load_textdomain_just_in_time

Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the anona domain was triggered too early. This is usually an indicator for some code in the plugin or theme ...
insect trojan's user avatar
0votes
1answer
20views

prevent category page from also highlighting blog-page menu

I created a "category" menu in Appeareances > menu, which appears in my top menu. Then when I am on this page and this menu is active (class : current-menu-item), my "blog" menu,...
Louis's user avatar
0votes
1answer
52views

One block of PHP codes dont function after another block of PHP codes - Wordpress

I have two separated PHP files in which some similar functions and loops of Wordpress are used. They are tested working very well. However, one block of PHP codes in a file is used on Sidebar of the ...
Meng888's user avatar
0votes
0answers
31views

How can I efficiently process 50k+ Gravity Forms entries without running into memory or timeout issues?

I'm working on a WordPress shortcode that aggregates data from Gravity Forms entries. I have: Around 50,000 entries on an enrollment form Around 30,000 entries on a feedback form Over 200 trainings I ...
Aristocles's user avatar
0votes
0answers
29views

Fixing Undefined variable $category issue in theme file

I will preface by saying I am not an expert in .php coding and barely know what I am looking at. On wordpress I am running into an issue of not being able to publish a post. After running a scan I ...
Zac Mozzar's user avatar
0votes
1answer
26views

Executing .py scripts from functions.php

I would like to run and store the value returned from a python script, in response to certain admin actions. I've tried a bunch of suggested solutions but the only method that has worked for me is: $...
Fluxian's user avatar
0votes
0answers
26views

Wordpress Multisite Network: some site detect a different php version

I manage an old Wordpress Multisite Network (there are 5 sites) and I want to update WP core (from 6.6.2 to 6.7.2), themes and plugins. First step is update obsolete php version 7.3 If I update php ...
Mauro Beretta's user avatar
0votes
0answers
37views

Load Divi global header and footer on external php page

I'm using the Divi theme and wanted to load the header and footer on an external php page. I have tried the following code but it loads the default header and footer: <?php require($_SERVER['...
user115946's user avatar
0votes
0answers
18views

Website page with white screen on Front-End

I'm facing a problem with my Wordpress website. I use Elementor and I created a specific page within my website for my custom t-shirt landing page, but this page doesn't open for the client, it's all ...
Gero Porfirio's user avatar
0votes
1answer
45views

Construct WP_Query args for multiple taxonomies and sort by terms

I'm trying to create a list of related posts from a couple of custom taxonomies and then sort them starting with one taxonomy's terms. The post type is "work" and the two taxonomies are &...
tgerard's user avatar
0votes
1answer
28views

browser tab showing page title twice

I recently changed themes, but using the same code, so I don't know why it's displaying differently. The browser tab is showing the page title 2 times. It should show as Page Title - Site Title How ...
Finding Colors's user avatar
0votes
0answers
34views

Prevent wp-includes/css/dist/components/style.css being rendered/loaded on the client side of my WP app

My host provider updated my application's version of WordPress to 6.7.2. Since then I have noticed on the frontend / public facing / client side of my application the following CSS file is now being ...
Mike Sav's user avatar

153050per page
close