All Questions
114,269
questions
0
votes
0
answers
6
views
Submitting form to admin-post.php Wordpress
I've been trying to get a basic plugin to work and I have followed what seems to be the flow to get the form to post to admin-post.php.
However, I only seem to get the white screen of death upon form ...
0
votes
1
answer
10
views
website migration url HTAccess rewrite rule
I couldn't find any post about my exact problem and I'm not smart enough to try&error things on a live website.
So please help.
I want to migrate Website A into Website B and I know that I need to ...
0
votes
0
answers
9
views
Can't have two simultaneous charts using Apex Charts
My problem is pretty simple: I have an HTML code block with an AJAX query that builds a perfectly fine chart using Apex Charts. When I duplicate this HTML block, it doesn't display one of the charts, ...
0
votes
0
answers
15
views
Website images not Loading [closed]
I'm having issues with my wordpress website. Sometimes the images on the website don't load, including the logo. Can any help or guide me? here is the URL of my site: https://apkwires.com/survivor-io-...
0
votes
0
answers
13
views
Uploading to Wordpress Database
Hope everyone is doing great. I have a small issue with uploading information to the wordpress database. I created a new table without the prefix. I created code based on what I've learned in ...
1
vote
0
answers
16
views
Restricting core block nested blocks
I've been trying to figure out if it's possible to restrict the innerblocks available in some of the core block. Right now I'm looking to restrict what can be used inside core/media-text and core/...
0
votes
0
answers
12
views
load-styles.php returning Error 503, and incidentally the WordPress dashboard is opening without any CSS [closed]
This is a problem I am having recently where the load-styles.php will not load on the dashboard/backend of my WordPress sites. This has happened across hosting providers, at least GoDaddy and ...
0
votes
0
answers
14
views
Wordpress how to remove parent slug from category URLs
The structure I have now is:
example.com/category/parent/child
example.com/parent (I don't want this)
This is how I want to build. How can I do that?
Archive pages
example.com/category/example-...
0
votes
1
answer
8
views
Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only
I wrote below code but facing issue to run it only on archive, categories, author, date pages to improve page speed.
add_action( 'wp_footer', function () { ?>
<script>
if( is_archive || ...
0
votes
1
answer
21
views
My Wordpress plugin wont update based on given interval
/**
* Adding our crone's to the site cron lists
* @since 3.7.3
* @access Public
* @var array $eventsAndTitles Events list.
*/
public function ...
0
votes
0
answers
9
views
CURCY and Polylang causes conflict and does not detect the proper currency [closed]
We have an e-commerce website called the acoustibox. We need to automatically set the currency according to location of the user.
We set the settings as:
Auto-detect: auto select currency;
GeoAPI: ...
0
votes
0
answers
15
views
Cache - How to force browser to reload wordpress assets from server instead of the cache
I have created a custom vue headless theme for my wp project. Since sometimes the data aren't loaded correctly, I want that the browser reload everytime the files instead of use the cache. I've added ...
-1
votes
0
answers
16
views
Wordpress forum password change
sorry for off-topic and for a non-technical question.
I would like to change my email address in the wordpress forum (https://login.wordpress.org/).
Now I tried to change it in my profile. For over a ...
0
votes
0
answers
23
views
Unexpected results custom wp_query and $the_query->request;
I have a problem with a WP query that I don't understand. If I query for the custom post type 'tribe_events' I get no results, while I know they exist. If I create a 'normal' sql query I do get the ...
0
votes
0
answers
10
views
Custom post type pagination conflict result in 404
we have post type reviews with the slug customers and archive page as customers/customer-stories
we have created page customers and want to show on this page posts from different post type.
it does ...
0
votes
0
answers
15
views
I'm trying to get posts under a custom taxonomy but I don't know what I'm doing wrong here
Im using the following php. and I'm only trying to call titles at the moment. I have 4 posts under this taxonomy.
<?php
$shopPosts = array(
'post_type' => array( ...
0
votes
0
answers
12
views
Add a new option to Social Link block
The social links block does not have an option for Nextdoor.
I obtained the SVG from the company:
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg&...
0
votes
1
answer
10
views
$wpdb:insert, more arguements in $format array than in $data
I'm making some customizations for a website, and I cam across this piece of code of a theme:
$wpdb->insert(
$table_name,
array(
'user_id' ...
0
votes
0
answers
10
views
Scaling media image results in a png, but WP only refers to jpg
I'm doing a blog post, same way I always have. I pick a featured image from Pixabay, add it, then scale it down because by default it's absolutely massive on the page.
But this time, something just ...
0
votes
0
answers
8
views
Hide/show button for the password field in the Woocommerce My Account page
How can I add a hide/show button for the password field in the Woocommerce My Account page?
A button or a eye icon
Thanks
0
votes
2
answers
19
views
Can't upload svg files in WordPress
I am facing the following issue while uploading any SVG file and sometimes face the same issue while uploading any image. "The server cannot process the image. This can happen if the server is ...
0
votes
0
answers
8
views
WordPress Popular Posts with WPML
I have a site with WordPress Popular Posts and WPML.
On blog page I have button with link in to page with popular posts
Link is: MYSITE/blog/sort/popular/ – on this page it’s work as expected
But if I ...
0
votes
0
answers
11
views
Display listing item details like the site indeed.com
I designed a listing website using Jet Engine and Elementor plugins.
In the display part of the listing, I want the display mode to be like the website indeed.com.
By clicking on an item, the designed ...
0
votes
0
answers
12
views
Setup existing Wordpress site for local development and testing using docker
I am trying to setup an existing wordpress site in docker in my local system, I have all the site content copied to a folder in my local system and using 'Volumes' in docker compose file to tell ...
0
votes
0
answers
29
views
why is this ajax callback to a REST endpoint still blocked by 'nosniff' due to MIME type ("application/json") mismatch?
i run WP on an nginx server
i've setup a rest endpoint, targeted in an ajax callback
if I enable a typical XCTO 'nosniff',
more_set_headers "X-Content-Type-Options: nosniff";
in server ...
0
votes
1
answer
11
views
Workaround AJAX calling without directly calling WordPress backend (Admin dashboard) because it is restricted to the end user (the public)
Hi everyone please I would like to put a topic up for discussion because I need help asap
I have a problem at work we developed a WordPress website and delivered it to the client we are in the final ...
0
votes
1
answer
18
views
Create a custom plugin with dynamic child pages listing database records
I am developing a simple lean and mean custom plugin which has the purpose to list records from some database tables. Goal is to list data via url /teams/{category}/{id}.
I've created a basic plugin ...
0
votes
0
answers
15
views
Where to store customer specific discount value depending on cart items?
Im building a function of buy 3 pay for 2 – the cheapest item will be substracted from each of the 3 items.
This is done in the hook woocommerce_before_calculate_totals and works great.
But now I need ...
0
votes
0
answers
9
views
Learnpress loading icon spins when trying to add lesson to course
I installed Learnpress with the Neve them last year and it worked great. I made a course and I added all the lessons to the course no problem.
I removed Learnpress for a bit because I wasn't doing ...
0
votes
0
answers
11
views
ActivityPub plugin when Letsencrypt present
I am trying to make ActivityPub plugin to work with my site https://codecorner.galanter.net. It expect webfinger endpoint https://codecorner.galanter.net/.well-known/webfinger?resource=acct:yuriy@...
0
votes
1
answer
13
views
add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico
Please Friend all, help me!
How add_rewrite_rule in multisite subdomain from images via functions.php not .htaccess
My Image Path https://cdn.domain.com/images/site2/favicon.ico
But I want change url ...
0
votes
0
answers
16
views
Create section wit form
At the moment i am study wordpress and i have some questions about create a section on my own template with hooks. I want create section with custom form below comments and above table filters, in ...
0
votes
2
answers
37
views
WP Query - Can't get posts with specific taxonomy
I can't get my custom posts with a specific taxonomy. Here is my code in functions.php :
function portalp_custom_post_type_realisations() {
$labels = array(
'name' =&...
1
vote
1
answer
27
views
Child theme css not loading when declared in parent functions
This code exists in the parent theme functions to load the child theme styles if the file exists but it is not loading at all even though the theme.css file is present in the child theme assets ...
0
votes
1
answer
40
views
functions.php doesn't load all custom theme assets
I'm writing a simple wordpress theme. I've added this function inside the functions.php file and I've noticed that only style.css is loaded. Is there something wrong that will cause that the other ...
0
votes
0
answers
24
views
How to store page-{id}.php templates in custom folder
I'm trying to create a custom function on WordPress to store page-{id}.php templates in a folder named "custom-pageid-templates" inside my theme directory. Here's the code I'm using:
...
0
votes
0
answers
13
views
wp_check_filetype doesn't return mime type for fonts
I'd like to return the mime type for fonts e.g. font/woff2. When using wp_check_filetype it returns application/octet-stream instead which is the equivalent of saying "I don't know what this is&...
0
votes
0
answers
21
views
Showing Home option in dropdown when there is no Home page exist
I am developing a plugin and in the admin side, I need to show a dropdown with options of all types of pages and posts etc. Its kind of a visibility option for a widget to be displayed on pages ...
0
votes
0
answers
17
views
How to edit a widget code?
I use a Latest Portfolio widget, but it can show max 20, but I need 30. While using Inspector, I can see the counter from 1-20, but cannot figure out which file has it. I viewed almost all files but ...
0
votes
1
answer
18
views
How to get appender icon to appear more often for innerblock usage
I'm on WordPress 6.1.1 locally in my development environment.
I referenced this article to setup an in improvement over innerblocks, by using useInnerBlocksProps.
I can see my parent block "Team ...
0
votes
0
answers
26
views
/wp-admin/plugins.php takes ages to load, and then 404s
On one of our clients websites, when you try to view the "plugins" page in the back-end, the page loads for several minutes, then returns a 404 (using the WordPress 404 template). This is a ...
0
votes
1
answer
22
views
WordPress Throwing Deprecated Errors on its own Files
My WordPress Website is throwing PHP Deprecated Errors on wp-include files.
I am novice WordPress Developer working on my site.
I am being flooded by these errors and extremely high CPU consumption on ...
0
votes
0
answers
16
views
How to protect my credentials on my clients website
I work with many different clients and I know some will try other freelancers eventually. Right now, my password is stored in my clients database. Is there any way to make this process safe? I would ...
0
votes
0
answers
5
views
Interaction of two "select" type custom fields in checkout form (Woocommerce) [closed]
Need to create an interaction between two select type custom fields in the checkout form.
The options values for both are in a database table.
The first select includes the cities and the other one ...
0
votes
0
answers
7
views
Reordering Wordpress Menu - Plugins [closed]
Im trying to reorder the Wordpress admin menu but im running into issues with WooCommerce and one other plugin. They are "admin.php?page=wc-admin" links and they do not seem to want to move.
...
0
votes
1
answer
18
views
Wanted to get rid of Paragrapgh tag in submit buttom of the WordPress form
function modify_comment_form_fields($fields){
// Check if $fields is an array
if (!is_array($fields)) {
return $fields;
}
ob_start();
$submit_button = ob_get_clean();
$submit_button ...
0
votes
0
answers
21
views
Sudden error "Allowed memory size of X bytes exhausted", very huge ammount of missing memory [closed]
I have a Wordpress 6.1 multisite with about 400 websites (every site have it's own child theme), working ok since months. Today I go to wp-admin and got an error just after login (in apache error logs)...
0
votes
1
answer
29
views
How do i get an Inline style in Gutenberg Block show up in front end?
I am trying to extend a gutenberg block. I have a color picker for my tab content background. At the moment, i can pick and change the background color on the backend, and it saves (refresh pa and ...
0
votes
0
answers
19
views
How to add featured thumbnail into import XML using URL image?
I would like to use an external image link to set the post's featured image in the XML. It is possible?
<item>
<title>title1</title>
<pubdate>2013-02-20 10:33:58</...
1
vote
1
answer
33
views
How to prepend a header section to all pages related to my Wordpress Plugin
I need to display custom block of php that contains a header with logo, buttons etc just below the wpadminbar ideally in the wpcontent div position as a relative element.
The respective header needs ...