All Questions
115,390
questions
0
votes
0
answers
19
views
How to replace Avatar link in profile page with upload profile pic. button using media library and display it in profile page and all wordpress site
I am developing a WordPress theme and using the following php code and JavaScript code, I replaced the Gravatar link with a button to upload profile image using Wordpress media library, the media ...
1
vote
0
answers
24
views
How to build BOTH non-block components and blocks present in the /src directory using @wordpress/scripts
I regularly use @wordpress/scripts for building both blocks and non-block components. Recently, I started working in a new plugin that registers both some blocks and non-block components that add ...
0
votes
0
answers
12
views
Help required with local wordpress setup
I recently had a problem with Windows on my computer. I removed the hard drive, put it in a usb casing and I am now using it as an external drive on a new computer. I only have access to all the ...
0
votes
0
answers
22
views
Woocomerce: Php code displayed on Product detail page
I have installed WP 6.4.1, and set up a WooCommerce version 8.2.2
On product detail page I see partial php code. Can someone give me a hint what I am missing here and how to troubleshoot this issue?
...
0
votes
0
answers
19
views
Fake email address with comment
Someone is claiming that, there was a comment on their WordPress website made by a friend of mine which was derogatory. Their proof is a screenshot of the comment, which shows my friend's work email ...
1
vote
0
answers
21
views
How can I get all capabilities for a particular user?
I am trying to get an array of all caps for a given user. But the method get_role_caps() only returns the custom capabilities assigned to the user. The array does not contain the caps from the default ...
0
votes
0
answers
5
views
URL syntax for searching post titles only (for RSS following)
I am following a Wordpress site via the native RSS feeds for search result queries.
For example:
https://site.wordpress.com/search/ticket/feed/rss2/
But this seems to be searching all posts' content ...
0
votes
0
answers
13
views
Category archive page redirects to home page
I have a multisite setup, any attempt to load /category/news or suchlike simply redirects to the home page. This is true for all categories.
in the case of the main sub-site it appends /wordpress (...
0
votes
0
answers
23
views
Translating Gutenberg Block - JSON Translation Files Not Loading
In following the steps outlined in this question I am unable to get it to work with the setup that I have. Essentially I have all my custom blocks within a structure like so:
They are loaded in ...
0
votes
2
answers
32
views
Why is my nested 'OR' meta_query not working?
I have the following code which I think should work but obviously i'm missing something. Anyone who can tell why this is not correct?
//EDIT
Here is what needs to happen. 'Merk', 'Type' and 'Dummy' ...
1
vote
1
answer
40
views
Correct way of using esc_attr() and esc_html()
1. esc_attr()
Based on the official documentation, this is correct:
echo '<div id="', esc_attr( $prefix . '-box' . $id ), '">';
This is incorrect:
echo '<div id="', esc_attr( $...
0
votes
0
answers
27
views
Applying a custom query for the AJAX "us_ajax_grid" function (from WPBakery)
I have some custom queries that are working properly with pagination if I use the regular pagination numbers, but I want to use the pagination as "page load on scroll" and then apply my ...
0
votes
0
answers
31
views
Youtube embedded videos unavailable
Three days ago all the embedded videos were working perfectly. Now some of them work but most show the message "Video unavailable" and a link to watch it on YouTube.
On debug info, I receive ...
0
votes
0
answers
32
views
Trying to run only certain action-scheduler tasks from WP-CLI
I'm writing a plugin that performs several actions, one of which is a complex routine that parses and imports a large Excel spreadsheet (don't ask). I want this routine to run as a background task, ...
0
votes
1
answer
23
views
Hide page title on dedicated posts page
My entrypage on my website is a static page. The post page is another one called "Beiträge". How can I remove the page title "Beiträge" on the posts page?
0
votes
1
answer
16
views
Form submission issue in wordpress admin (custom plugin) using $_GET for searching & filtering
I have a custom plugin that was built by a developer which was working fine until last week Friday. The plugin is running on wordpress.com platform rather than a stand alone Wordpress.org CMS.
An ...
0
votes
0
answers
15
views
Photo is not showing properly
I have created a banner after the header which is working fine on desktop view but now on phone view. Here is the example:
here is the example of phone view:
as you can see in the images, photo is ...
0
votes
1
answer
18
views
How to add 'Categories' heading to categories block in sidebar?
I recently started blogging again after years and was experimenting with new themes. However, when I tried to switch back to the old Kubrick theme, I wasn't able to as it has been retired. After ...
0
votes
0
answers
14
views
Uncaught Error: Class ‘WP_Upgrader_Skin’ not found
WP-CLI 2.9.0 run with –debug
….
Debug (bootstrap): argv: /bin/wp core check-update –debug –path=/home/web/public_html (0.752s)
Debug (bootstrap): ABSPATH defined: /home/web/public_html/ (0.752s)
Debug ...
0
votes
0
answers
10
views
Plugin recommendation needed: expiring links
I am looking for plugins like Unique Links, One-Time Link Generator, and WP-OneTime-Link (which was recommended to me) but I can not find any of those – not even when I use an internet search 🙁
I am ...
0
votes
0
answers
23
views
Separate typography controls for titles and meta in a custom block?
I'm building a simple dynamic custom block that shows a list of posts of a custom post type.
JS:
import metadata from './block.json';
import './style.scss';
const { name } = metadata;
export const ...
0
votes
1
answer
33
views
Mixed results with is_page() WordPress function, when using $this, or self
I'm converting an old plugin from PHP5 -> PHP8 and I came across this check, which caused an error when executing:
Notice: Accessing static property PropertySearch::$listing_details_template_name ...
0
votes
0
answers
22
views
Sticky Sidebar with TOC in twenty-twenty-four
I'm looking for a way to have a sticky table of contents in a sidebar (for posts only) in Theme twenty-twenty-four. I'm using template 'Single with Sidebar' and I've edited the sidebar pattern so it ...
0
votes
1
answer
15
views
How do I edit text color for shortcode?
I am trying to learn web development and using WordPress to make a site. I have Event Calendar, and Event Tickets Plugins. The Event Tickets Plugin uses short code to generate a checkout page after ...
0
votes
0
answers
16
views
How to make the product single photos vertical? (woocommerce)
I would like to stack all the images on the product page one above the other, without thumbnails, instead of having only one large image above the thumbnails. Many fashion stores showcase this effect ...
0
votes
0
answers
17
views
How to enqueue additional scripts and styles after loading another post into the DOM?
If have a post_showcase shortcode that takes in post_ids as parameters. The shortcode generates buttons that when click will load the given post into a modal. However, the shortcodes within the ...
0
votes
0
answers
22
views
How can I scan my entire site for every image to know each image's size and dimensions and url?
A client wants to know the size and dimensions of every image on their wordpress site and where they are located (URL). I'm a jr developer tasked with this and I truly have no idea where to start. I ...
0
votes
2
answers
59
views
WordPress Bimber template not sending User activation mails automatically
I have a bimber WordPress template, it has a User section in admin panel, when a new user signups, it goes to pending section, waiting for me to send an activation mail. How can I automate this ...
1
vote
0
answers
12
views
@wordpress/env cli doesn't seem to properly update permalink structure until visiting the WP Admin Permalink settings page
I'm using https://www.npmjs.com/package/@wordpress/env to set up a local docker-based WordPress development environment, which has been working great so far. I'm trying to build a script using ...
0
votes
1
answer
14
views
Cannot get user's ACF data when using a template part in a WP_User_Query
I'm using a template part to repeat the HTML for each result when performing a WP_User_Query to return a list of users. However I am finding that the Advanced Custom Fields data isn't returning.
// ...
0
votes
0
answers
46
views
call_user_func_array() expects parameter 1 to be a valid callback, class 'Automattic\Jetpack\Extensions\Contact_Form\Contact_Form_Block' not found
I got his error message above every page of my website, https://changyuan.com.tw/:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Automattic\Jetpack\Extensions\...
0
votes
1
answer
26
views
Is there a way to bulk upload HTML files into WordPress as posts or pages?
I realize this is a longshot... I have a site running on a proprietary platform ("SiteSell", aka "SBI"). I have over 200 html files from that system on my local computer. Is there ...
0
votes
0
answers
21
views
Galleries are limited to 12 images
I have used the wordpress gallery for my posts. with 10-40 photos per gallery. Since today, however, only exactly 12 photos per gallery are displayed in the all the posts on my website. (although I ...
0
votes
1
answer
10
views
Google indexing pages that are not used
I am using wp site that was built on template downloaded from internet and uploaded demo content of theme.
There are bunch of pages that I am not using. They can not be accessed from website but I see ...
0
votes
1
answer
68
views
Can I count every article following extracted meta value?
I can show all value in certain meta key(species1 and species2) by my code below. It shows like this. $species[]contains many kinds of bird species.
Crow Eagle Crane Pigeon...
Now, I like to count ...
0
votes
0
answers
35
views
Include theme header and footer in custom plugin
I am working on a custom plugin. I created a custom post type inside my plugin. Now, for single posts I want to serve a custom template using my custom plugin without touching any theme file. The ...
0
votes
1
answer
29
views
Why does customize_register only load inside of functions.php for me?
I'd like to better understand - when I place the below into my functions.php file:
add_action('customize_register', 'boat_annualReport_customize_register');
function ...
0
votes
2
answers
46
views
Removing filename searches when searching attachments
My website's db is quite big. I have some 350,000 images in the media library (as well as some 350,000 posts). My wp_postmeta table has 4,580,552 rows.
As a result, some queries are insanely slow and ...
0
votes
0
answers
18
views
Woocommerce Payment Plugin with Mycred being the payment processor
some help please.
I am trying to build a Woocommerce Payment Plugin with MyCred being the payment processor on another website. The mycred remote api is well configured, and I wrote the payment method ...
0
votes
0
answers
8
views
Template adding to the page
I work for the client, made the site and now I'm editing the dashboard and I need help from you guys, I edited dashboard for the client that when they want to edit stuff, they can go on that account ...
0
votes
0
answers
9
views
Adding amount to cart when input field is filled
I am trying to add a custom input field to a single product template in WooCommerce, which would add a fee of $20 to the cart total if the customer inputs data in the field. I have added a custom ...
0
votes
0
answers
12
views
WP-PageNavi not working on category.php
It is working in another page I created where it shows all the posts, but not in category.php, where it shows only the posts of the specified category. It only shows the first page, the second onward ...
0
votes
0
answers
14
views
Best Practice for Implementing OAuth2 Callback Logic in a Dedicated Page vs. in the init Hook
I am currently developing an OAuth2 plugin where I need to implement a callback URL for handling authentication logic. Currently, I have the logic hooked into the init function, checking if the URL ...
0
votes
0
answers
12
views
My website freezes for one minute every time I publish or update a post
Every time I publish a new post or update an existing one, my website freezes for around one minute, although the post is updated shortly after I click the update button in the WordPress admin ...
0
votes
0
answers
8
views
Is there a hook for updated image metadata upon using image editor?
When a user uploads an image, I am able to use the wp_generate_attachment_metadata hook to know about all the thumbnail locations.
When I use Wordpress to Edit Image (to scale, resize, etc), I can not ...
0
votes
0
answers
16
views
Add div on query loop page change
I have a little bit of JS that is wrapping elements of a blog module in a div in order to be able to create a flexbox layout
$(document).ready(function() {
$(".et_pb_post").each(...
0
votes
0
answers
13
views
SQL query based on two different custom field values
I have custom post type "store" that has two different custom fields: Coutry and City. When in the single country page I list all the stores in that country.
What I would like to do is to ...
0
votes
0
answers
31
views
Function _admin_bar_bump_cb is deprecated since version 6.4.0
I am getting the following error message since 6.4.0:
Function _admin_bar_bump_cb is deprecated since version 6.4.0
However I am not using _admin_bar_bump_cb in any theme/plugins.
debug_backtrace() ...
0
votes
1
answer
17
views
Check for a value in a custom query
I have a custom query to show people working in a specific division (label) in an organisation.
I want to display the specific division’s name before the cards of the people are displayed.
Currently I ...
0
votes
0
answers
9
views
Redirecting to Specific Page after Language Selection with GTranslate Plugin
Dear WordPress StackExchange Community,
I have been using the GTranslate plugin, and I'm thrilled with its functionality. However, I am facing a challenge and would appreciate your insights.
Here's ...