All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
28 views

Elegantly prune post revisions

My post revisions are out of control. The issue is that I set the max number in wp-config too late, and some posts must have more than 30+ revisions, while others only have 1-2. I can prune them all, ...
  • 159
0 votes
0 answers
18 views

Best approach of implementing multi-select/checkboxes for taxonomies?

I am working on modifying how multi-select is done in a list in a custom wordpress plugin instead of using the default method of holding ctrl and clicking. The point of the plugin is to be able to ...
0 votes
0 answers
26 views

Wordpress - tracking options

I wanted to ask, how much is it possible to track users when using WP as a CMS. For example, can I see, when users go to certain directories like wp/files or open specific documents like wp/files/docs/...
  • 1
0 votes
2 answers
25 views

Media library upload hook

I would like to create a function that fires when a file is uploaded to media library to automatically assign multiple categories. So I created this code as proof of concept, but it is not assigning a ...
  • 1
0 votes
0 answers
11 views

Child terms with improper parent in the url should redirect to 404

I have post categories created in the below hierarchy: {Category Name}({Category Slug}) Category1 (category1) -SubCategory (subcategory) Category2 (category2) -SubCategory (subcategory-category2) Two ...
0 votes
0 answers
12 views

Custom Admin Menu Report for Specific User ID

I've been thinking for generating a custom revenue report for each user ID with an 'author' role monthly, which would be displayed on the backend. All my online users must be able to view their own ...
  • 1
0 votes
0 answers
20 views

Warning: Undefined property: wpdb::$question_overview in C:\Wamp.NET\sites\proxyvragenmodule\wordpress\wp-includes\class-wpdb.php

My question on stackoverflow was asked on the wrong part of my code I have an error that ive been dealing with since forever.. Im making a question viewer in wordpress and it shows this error Warning: ...
0 votes
1 answer
21 views

Making the Google Maps API non readable

Our former developers created this code below. However, when it renders on our site, it displays the API key. Is there a better way to hide the API key while still enlisting the script to be executed? ...
0 votes
1 answer
23 views

Can't update plugins in Wordpress, system returns -1

We are running Wordpress version 6.1.1. When we try to update one or more (we've tried to do it in several ways) plugins, Wordpress returns a -1 (see image below) The system is then stuck in ...
0 votes
0 answers
9 views

Change password reqts with NO plugin without breaking resetpass link?

I'm trying to change password requirements in WP 6.1.1 without using a plugin. It's a clean install with just wp-cli plugin list +---------------------------------------+----------+--------+----...
  • 1
0 votes
0 answers
17 views

Get API from external source and save in cutom post type

I am new to this API thing, I have an external API that contains 345 products. Product fields are feature images, product descriptions, and a few meta fields. I know how to create CPTs and meta fields;...
  • 51
0 votes
0 answers
15 views

Host Php script from codecanyon on wordpress

I have purchased a script from codecanyon.It is PHP version 8.1 supported. Can I host it on WordPress? At this time hosted it through cpanel.
0 votes
1 answer
18 views

Editing size of h3 tag in wordpress on a one-off basis

I have a post on my WordPress site (I'm admin) that has H1, H2, and H3 tags. I want my H3 tags for this post to more resemble my h4 tags in size. However, I don't want to break the hierarchy and just ...
0 votes
0 answers
19 views

Permalinks not working on debian with OVH

Hi, How to fix 404 errors from permalinks ? I tried to change https://website/?page_id=690 to https://website/salle-de-bain on my website. So I go on settings > permalinks and do a /%postname%/ ...
  • 1
0 votes
2 answers
12 views

Multisite subdomain microsite on secondary domain

I have a WP multisite installation that I use to host several websites for a few nonprofits that I’m a part of. I’m trying to launch a microsite for one of the domains, but can’t seem to make it work. ...
  • 1
1 vote
1 answer
35 views

How to disable block directory?

I cant find a way to disable listing new blocks from the block directory in the editor. In the editor, if you search for something, third party blocks show up and ask you if you want to install them. ...
  • 153
0 votes
0 answers
19 views

Add text when displying attribute with a hook on single product page

I have books as products in woocommerce and I'm trying to show the order of the book in the series. It should look something like this: "The book 1 of Series" I've managed to add the link to ...
0 votes
2 answers
32 views

How to include custom fields in wordpress search

As you know WordPress search only look at the post titles and contents, but I want the search to include also a custom field. Let me explain more: Consider a movie post with the title "Fast Five&...
0 votes
0 answers
18 views

How to add Featured Image on WXR from External Conversion

I want to migrate data from old site into a new WordPress installation, as I convert everything as expected, I still could not set the featured image. I've tryin to read How to add featured thumbnail ...
0 votes
0 answers
6 views

Filtering custom post admin listing page elements based on acf user field

I have the following problem. I have a wordpress user role 'uzletkoto', which I created with the user role editor plugin and set its rights. I have a unique post type 'partner', which has a user field ...
  • 101
0 votes
0 answers
15 views

Add new taxonomy in WP without generate any url

I need to finding all posts that have X taxonomy with WP_Query for display position of each post in a separate section of the home page. This is my only use of this taxonomy and I don't want these ...
0 votes
0 answers
7 views

Woocommerce API for calling products by Category ID

I belong to a Non Technical background. I have recently built an app from freelancers, Now I am looking to call the products from woocommerce by using category id. Can someone suggest how can I do it? ...
0 votes
1 answer
36 views

Change Pagination Default to "/2/" Query String "?page=2"

Help me Friends, How to change url on all pagination wordpress in home, taxonomy and post nextpage from /2/ to ?page=2 In home or frontpage : https://www.domain.com/?page=2 In Taxonomy : https://www....
0 votes
0 answers
20 views

Adding category to existing post (uploaded file)

Brand new here and new to WP, running 6.1.1. I uploaded a file that appears in Media Library. What I want to do is programmatically assign multiple categories to the post after it is uploaded. I have ...
  • 1
0 votes
0 answers
8 views

How to put link on a slideshow gallery?

I am having trouble putting a link on a slideshow gallery. Slideshow block's (https://wordpress.com/support/wordpress-editor/blocks/slideshow-block/) menu doesn't have any options to put a link. ...
  • 101
0 votes
0 answers
13 views

After migration index page still redirects to old url

Hi, I copied my entire site from myexample.com to myexample.org first by using Duplicator plugin but it didnt go well since it gave me encoding errors so I did it manually but now whenever I try to ...
  • 163
0 votes
1 answer
17 views

My Website’s Main URL redirects me to an Archive Page

desperately need your help as I’m completely new to this concept called “WordPress”. When I visit www.mydomainname.com, it automatically pulls a page that shows “Archive” right under my Logo and the ...
  • 1
0 votes
0 answers
9 views

An automated WordPress update has failed to complete - But all udpates fail with code -1

I have a wordpress website on my ubunut machine. I do use autoupdates und auto updates for plugins. After I logged in recently I saw that a couple of plugins didn't update as well as wordpress itself. ...
0 votes
1 answer
10 views

Best way for managing images of ads banners

I started building a custom theme and I have a lot of ads banner image on different pages of the site. But my concern is about slowing down the site's loading speed. What is the best way to display ...
0 votes
1 answer
16 views

Add Input Form for Select Category Like Tags

i have about 200 categories. When I have to publish a post, I select a category one by one. How do I select a category by entering such as adding Tags?
0 votes
0 answers
8 views

CPT Custom post type Tags & Categories not showing for 'Editor' user in editor

Using the CPT UI plugin I created the "Member Post" post type and associate the Categories and Tags with it. If I log into an admin account, the categories and tags show up in the post ...
0 votes
1 answer
20 views

Best performance for use Custom Field in WP

I started building a custom theme and I might need to have around 10 to 20 custom fields for posts and I need to 30 custom fields for theme options and image ads banner, and thinking if this will ...
0 votes
0 answers
10 views

Wordpress Multisite Network - Site Administrators Can't Access wp-admin

I am fairly experienced in Wordpress, but not with Multisite. On a site I am currently building, which is part of a Multisite network, only super-admins on the entire network are able to access the ...
  • 1
0 votes
1 answer
28 views

Using Wordpress API to mass update posts freezes the server

Our site has recently been infected and a malware code was added to all the 5300+ posts. I wrote a simple app using Wordpress PCL to update the texts of all posts. But after updating a couple hundreds ...
0 votes
1 answer
8 views

This SQL request call all time and overload my server : SELECT meta_value FROM wp_sitemeta WHERE meta_key = 'wp_installer_network' AND site_id = 1

I have this SQL request who is call every time on my website and take between 1 and 2 secondes to execute so my serveur break down. What is it and how delete it ? SELECT meta_value FROM wp_sitemeta ...
0 votes
0 answers
24 views

Plugin translations are not loaded from translate.wordpress.org

My plugin has 100% translations for few languages in translate.wordpress.org. I have set the correct text domain, slug, "requires at least version" as per documentation below. https://...
0 votes
0 answers
39 views

Escaping admin_url output being passed to js (esc_js vs esc_url)

I am now hardening my first WP plugin. One of my buttons calls a js function which is making a POST against admin-ajax.php. The non-hardened code contains the following: onclick = 'kuba_postMyStuff(&...
  • 1
0 votes
0 answers
77 views

Pagination only showed when no category is set in wp_query

tldr: On my production site only, when I set category_name to any category my pagination does not show up. Once I remove category_name from my wp_query the pagination shows up (for all posts on my ...
  • 135
0 votes
1 answer
27 views

How to add arbitrary custom CSS to a Wordpress Block Theme using Site Editor?

When using a Block Theme then you can use the Site Editor, accessible via: Wordpress Dashboard > Appearance > Editor. — Introduced in Wordpress 5.9 on 2022-01-25. Site Editor > Styles (right ...
  • 111
0 votes
1 answer
33 views

Dynamically add table of contents and add anchor based on heading innerHTML

I am looking to do the following:- Parse the blocks on a page and check to see if the block is a core/group block If it is, check the first innerBlocks is a core/heading (would be useful to achieve ...
  • 59
0 votes
0 answers
62 views

Fatal Error: Uncaught ArgumentCountError: Too few arguments to function - on logout of wordpress dashboard

I am getting a fatal error when trying to login to the WP dashboard - and on logout after logging in via the host: Fatal error: Uncaught ArgumentCountError: Too few arguments to function Wpsec\captcha\...
1 vote
0 answers
31 views

Cc header in wp_mail() not working

for some reason, the Cc email address won't receive the same mail as the recipient. $headers = array( 'Content-Type: text/html; charset=UTF-8', 'Cc: finance@example.com', 'From: IFHC <...
  • 11
0 votes
0 answers
35 views

Wordpress post objects in one parent post object

I'm creating an event page where we can add an event line-up. Such a line-up consists out of different speakers. So I've create two custom post types: Line-up Speaker On my event page you can select ...
  • 135
0 votes
0 answers
10 views

iOS and ajaxComplete

EDIT: Hmm, it seems to be working now. Maybe some kind of caching issue. Can anyone offer any help? The following code works fine, except on iOS; $( document ).ajaxComplete(function() { $("#...
0 votes
0 answers
24 views

rewriteRules WP6

I’ve got a custom post type slides which is set up this way function register_slides() { $labels_slides = array( 'name' => __( 'Slides', 'slides' ), 'singular_name' => __( '...
  • 1
0 votes
0 answers
23 views

How to delete posts with incorrect status

This is a weird one. By mistake, I created some posts using WP Webhooks + Make where the post_status was incorrectly set to "published" instead of "publish". Now, for some reason ...
0 votes
1 answer
45 views

How to find out what is causing redirect of static content?

On a Wordpress site I have a password protected directory at the same level as Wordpress containing static content. Wordpress is installed in the root of the site: https://example.com/ - Wordpress ...
  • 121
0 votes
0 answers
16 views

Translate via URL parameter working only in localhost

I have a website and the default language is brazilian portuguese ( already using __() ). Then, using POEdit, I created two others languages: English and Chinese, translated all the terms, tested it ...
0 votes
0 answers
8 views

I can't log into my website , it says "Error: Cookies are blocked due to unexpected output"

I have seen others with this same problem but when I google it it resolves it in a lingo I don't understand. I need a simple answer.
0 votes
0 answers
21 views

Wordpress Missing Images

I have an image on my site: https://cac.bensplayground.us/wp-content/uploads/2023/01/BTA-10006078_A.jpg But when I go to File Manager and look in the folder, it simply isn't there. HOW is that even ...

15 30 50 per page
1
3 4
5
6 7
2286