All Questions
115,407
questions
0
votes
1
answer
12
views
New server, custom blocks all give "Your site doesn’t include support for the xxx block"
I'm trying to move a site to a new Ubuntu server, and enable HTTP2 in the process. This means I've had (I think) to switch to php-fpm.
The only issue is with the custom blocks in the theme - anywhere ...
0
votes
0
answers
12
views
How to show custom fields in modal in category page
The code below shows the title and content in the modal popup in category.php file. The full tutorial can be seen here although not important: https://artisansweb.net/load-dynamic-content-on-bootstrap-...
0
votes
0
answers
24
views
why I could not use <svg> data in WordPress additional css part
I was reading this article to customize the bullet lists (li tags) in my posts in a WordPress website. But when I want to add these CSS codes:
li{
list-style-image: url('data:image/svg+xml,<svg ...
0
votes
0
answers
10
views
where the setting is stored in FSE, not theme.json
I added a custom font to the TT4 theme via theme.json. I'm not able to see the font name when I go to Editor>Styles in Typography I cannot see the font. But once I go to my host and rename a folder ...
0
votes
0
answers
6
views
Load textdomain in the website, not in the admin, based on user settings not general settings
When you load textdomain with load_theme_textdomain() hooked on 'after_setup_theme' it loads your translations both in the admin and on the website, but it translate the website based on the option &...
0
votes
0
answers
19
views
If an Application Password is accidentally revoked, is there any way to restore it?
The concern is that it is too easy for the internal webmaster or admin to
accidentally revoke an application password for an application name for a
specific user.
In this case the application password ...
0
votes
1
answer
15
views
WP Query filtering by custom category not showing all relevant posts
Here's a question I've been trying to solve all day:
I added a WP Query that would show posts from a category that the admin chooses with a custom field. The post is a custom post type called "...
0
votes
0
answers
6
views
Splide carousel block - innerBlocks not selectable after innerBlocks change
I've built a carousel block using the Splide library, which mostly works great. The options are reactive and that side of things works fine.
However I have an issue when modifying innerBlocks (add/...
0
votes
1
answer
29
views
Isn't rest_do_request() filtered by pre_get_posts() filter?
I'm toying with rest_do_request() with the plan to use it for a semi-headless theme (we use it to power a sort of CRM for our clients, using custom plugins with lot of CPTs etc).
I'm experimenting a ...
0
votes
0
answers
11
views
Implementation of a Download Wrapper
We have a number of static files (thousands) that are linked in WordPress from a post using Advanced Custom Fields and able to be downloaded. I am aware that this is insecure, but it is an inherited ...
0
votes
1
answer
31
views
Editing wp-login.php
I'm looking to alter the message "Please enter your username or email address. You will receive an email message with instructions on how to reset your password" in the wp-login file.
If I ...
-1
votes
0
answers
13
views
WooCommerce Plugin for min. order quantity [closed]
First of all, I'm sorry if there's a plugin like that and I wasn't able to find it, but I did my research and seems like I couldn't find a working solution for me.
The scenario is following: I have a ...
0
votes
0
answers
4
views
Create multiple facades for same product?
Consider you sell zucchinis (courgette for those British, French).
And that is exactly my problem.
If I make a product called Zucchini - then it'll list on Google as Zucchini. But then I will not get ...
0
votes
1
answer
16
views
Yoast SEO canonical URL gets pointed to the homepage
I noticed in Google Search Console that pages are increasingly getting removed from the index due to their canonical. For some reason — it points to the home page for some articles.
After some digging,...
0
votes
1
answer
10
views
audio tags no longer working
On my website, I had a plugin, that displayed a media tag like [audio src=path/file.mp3]. It returned this tag in the HTML retruned from the shortcode function.
function init() {
add_shortcode('...
0
votes
1
answer
14
views
Changed the name of my website and now in the editingpage all photo's are questionmarks
So the titel says it all.
I changed the name of my website and now all the photo's in the editingpage show up as boxes with blue question marks.
But the website still works and shows the right images. ...
-1
votes
0
answers
12
views
Contact form 7 will not send the post id if embedded in a sidebar
I have the Contact Form 7 setup in a sidebar inside a custom post type
Content:
<div class="form-widget">
<div class="widget-title">
<h3>Rezerva un ...
0
votes
1
answer
24
views
FilesMatch in htaccess
Suddenly my WordPress site is not working - looking at .htaccess it has
<FilesMatch ".(py|exe|php)$">
Order allow,deny
Deny from all
</FilesMatch>
<FilesMatch "^(about....
0
votes
1
answer
16
views
How to add the custom icon for elementor widget
I am developing a custom widget for the Elementor editor in Wordpress. I want to set the custom widget icon, the Elementor provides the get_icon function in that we have to return the class which has :...
1
vote
1
answer
16
views
wp-content/uploads/year/month returns 404
I have a litespeed hosting
I have disabled all plugins and all wordpress related htaccess rewrites.
If I go to https://digitalzoomstudio.net/wp-content/uploads/2023/ - then I can see the directory ...
0
votes
0
answers
12
views
Handling gettext / string translation when WP is installed in subfolder
My setup
I have a custom PHP application that uses po/mo files in a locale directory to provide translations for the website strings. All works perfectly. I have Wordpress installed in a sub-directory ...
0
votes
0
answers
14
views
Send email to customer with order status "pending payment"
I am trying to send a custom email after 1h to someone who tries to place an order in my store but did not make a successful payment. The code I am using below, but for some reason no email is being ...
0
votes
0
answers
18
views
Show "Local Pickup" shipping method only for specific Woocommerce product [closed]
I have some products which i can't offer pickup and i would like to have an enable/disable option while adding product to disable local pickup option for those products on my woocommerce shop.
Can ...
0
votes
0
answers
8
views
Woocommerce Conditional Payments [closed]
I'm trying to hide the BACS payment method when the order is less than $500 but the code is not working. I can't find the error.
add_filter( 'woocommerce_available_payment_gateways', '...
0
votes
1
answer
17
views
Wordpress post on home page of my website
Sorry I'm new to wordpress and I'm trying to show my wordpress posts from www.example.com/blog to www.example.com
I installed wordpress in /blog and I'm trying to display all the wordpress posts using ...
0
votes
0
answers
13
views
Are there WordPress e-commerce plugins that allow for adding an animal and then parts of that animal as products? [closed]
I am trying to figure out if there is an e-commerce plugin that allows website users to select an animal and then select a body part of that animal for purchase?
I've googled and searched in ...
0
votes
1
answer
31
views
Endpoint returning a 404
Hi I've built a wordpress plugin using a class.
I'm sure all names (functies, urls, etc are correct.
I'm trying to access my endpoint url using http://localhost/inschrijfmodule/wp-json/endpoint/...
0
votes
0
answers
35
views
Content on 90% of my website looks to have disapeared
Website is www.woodslabs.ca. I was having issues with an error appearing when trying to edit pages so I reached out to my hosting company for help.
After a few back and forth they were able to get ...
0
votes
0
answers
17
views
How can I make a daily streak feature on my WordPress site? 🌟
How can I make a daily streak feature on my WordPress site? 🌟
I want users to click a button each day to track an activity (like reciting a dua). If they miss a day, the streak should reset. Any ...
0
votes
0
answers
9
views
RSS Feed URL redirecting to site URL
I have the following Blog on WordPress. My blog is not showing RSS Feed instead redirecting to the homepage. how should i find or add RSS Feed for my blog.
1
vote
0
answers
30
views
Hide PUBLIC posts in the LOOP from LOGGED-IN users
I am trying to achieve this:
When users are logged in, and they look at the loop in Home page, they should see ONLY private posts.
Public posts should be hidden from them, as they are redundant.
I ...
0
votes
0
answers
8
views
Custom API how to return int field
I have a custom table in db with a column recommendation of type int(11).
Then as one of my custom route handlers I have
global $wpdb;
$query = "SELECT recommendation FROM `restaurants`;
// ...
0
votes
1
answer
10
views
Adding content to the top of post's based on their category
I'm trying, but struggling to add a specific div to the top of a post, based on the category it is assigned.
For example, at the top of the content, if it's tagged with 'basketball' I want to add ...
0
votes
0
answers
12
views
Can you add a line break above all <h2> tags?
Here's how my text looks like in my text editor - https://prnt.sc/FPDv_zIwQz2R
Here's how the web page appears when previewed - https://prnt.sc/fvKit11H3Xr4
As you can see, there's no break above the ....
0
votes
1
answer
24
views
Parse error: syntax error, unexpected token "endif", expecting end of file in C:\xampp\htdocs\Blog\register.php
I am trying this code but not getting the result, what should I have to try?
<?php if(count($errors) > 0): ?>
<div class="msg error">
<?php foreach ($errors as $...
0
votes
0
answers
19
views
WordPress Page Width Issue: Seeking Solutions
Hello Google Help Community,
I am facing an issue with my WordPress website, specifically with two pages - "About Us" and "Guest Post."
These pages are currently aligned to the ...
0
votes
0
answers
13
views
Something broken with the forum at wordpress.org?
for a couple of weeks I haven't been able to log into https://wordpress.org/support/forums/ or even register for a new account.
After I try to login, I get an error message saying: "Log in to ...
0
votes
0
answers
6
views
Moving formatted data in Salesforce rich text field into Wordpress
I am new to moving Salesforce data dynamically into Wordpress. I am wondering if it is possible to retrieve data in a rich content Salesforce field and pull it into Wordpress without losing the ...
0
votes
0
answers
26
views
How can I modify the shortcode values of a nextgen gallery using php?
I am trying to modify the parameters of a NextGen gallery shortcode when displayed in a theme template.
I paste the shortcode into an ACF WYSIWYG field like this
[ngg src="galleries" ids=&...
0
votes
1
answer
11
views
Unexpected warning message to my WordPress posts which group and listed out by year
I have my WordPress posts looped and listed out by year successfully.
However, I am unsure why I still received a warning message.
Warning: Undefined variable $year_check
Below are the codes that I ...
0
votes
0
answers
15
views
How to add input field value to Users in Wordpress Dashboard
I've got a request where the client would like to store provided emails in the WordPress Dashboard so they can access them for marketing.
I've added an email input field like so:
<div class="...
0
votes
0
answers
33
views
config @wordpress/scripts with webpack and postCSS features
I using wordpress as CMS and I want to config @wordpress/scripts with webpack and adding PostCSS and it's plugins like: postcss-loader, postcss-import, postcss-simple-vars,postcss-nested, postcss-...
0
votes
1
answer
22
views
Wordpress fallback rewrite
we have a situation where, for the same permalink, there could be both a page and a custom post, for example "car".
https://www.example.com/aaa/bbb/carPostID
Normally at that address there ...
0
votes
0
answers
31
views
Jest Unit tests for High order component containing Block Editor
everyone!
I created High order component HOC which adds additional panel to Advanced section at the right sidebar
Something like this:
import React from 'react'
import {InspectorAdvancedControls} ...
0
votes
0
answers
19
views
How to add default folders to Every registered User when registered in WordPress site?
I need some guidance on my work. As soon as the clients register on a WordPress site. I want the clients to see 4 folders by default: 2002 2003 2004 and Firm Documents.
Once the clients activate their ...
0
votes
1
answer
24
views
Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
I’m working on a custom dynamic Gutenberg block. I’d like it to act like a normal rich text paragraph (e.g., can be split or merged as needed), rather than have multiple “paragraphs” included in one ...
0
votes
1
answer
8
views
Conditional Content Linked to Cookie Value Only Shows on 2nd Page Load
I have the following 2 functions in functions.php
// Function to set the plan cookie
function set_plan_cookie() {
if (isset($_GET['plan'])) {
$plan_value = sanitize_text_field($_GET['plan']...
0
votes
0
answers
6
views
custom post type dynamically shows in menubar in wordpress
I am developing a hospital website in wordpress. For that I make a custom post type "Services". All the hospital services (ex:ICU, CCU, NICU, Emergency etc) are going under this "...
0
votes
0
answers
26
views
How to edit category/archive page?
Basically I want to customize this page to make it look like this page, however I can only edit text over the featured image with my theme. Is there a way to edit the category/archive page (sorry for ...
0
votes
0
answers
25
views
Weird Issue - Wordpress Multisite - Cannot Access subdomain's pages
Good evening to everyone. I will try to describe my (weird) problem, as detailed as possible and any help would be greatly appreciated.
I had a multisite that worked great. My company asked me to ...