All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

How to remove extra empty lines between each Gutenberg blocks on HTML markup?

When having a look on the HTML markup of any post of my WordPress website, I can see that Gutenberg editor is adding extra spaces between each blocks and tags (exactly 3 empty lines). Is there a way ...
PhpDoe's user avatar
  • 197
0 votes
0 answers
8 views

$wpdb->insert writes a record twice for some reason, when my custom developed plugin calls my class function once

My custom code in my custom (class-based) plugin for some reason, writes the same record twice, when as you can see it's called once. This double write also happens even when I do the same type of ...
Mario's user avatar
  • 1
0 votes
0 answers
20 views

wp-cron job issue

My WordPress website is hosted on a Plesk server and receives numerous visits from users who read a variety of articles. However, I have been experiencing log errors related to wp-cron that are ...
vishalprajapati13's user avatar
0 votes
0 answers
7 views

events page of Event Calendar not redirecting for logged out users

I’m using Suremembers plugin to restrict my site excluding some of its pages for logged out users and for some reason, it doesn’t seem to be working only in the events page. I also tried adding a ...
leonardeveloper's user avatar
0 votes
1 answer
14 views

wp_logout action hook is not firing

Why the user meta value is not being changed after logout using the following code: function update_login_status_on_logout() { $user_id = get_current_user_id(); if ($user_id) { ...
rock's user avatar
  • 1
0 votes
0 answers
11 views

Create a menu and a submenu

I'm trying to create a menu and a submenu in wordpress, here is the code: <?php require_once(ABSPATH.'wp-config.php'); require_once(ABSPATH.'wp-includes/pluggable.php'); require_once(ABSPATH.'wp-...
Bruno Lima's user avatar
0 votes
0 answers
6 views

I'm looking a way to insert math symbols directly in a WordPress post/page by using a math editor

I have a WordPress site in which mathematicians write posts that use mathemtical symbols. Since 7 years ago they used a plugin that had a math editor with which they could enter mathematical symbols ...
G.Georgiou's user avatar
0 votes
0 answers
5 views

Creating Custom Post Type and Storing Information on Database

So, I've been going over the plugin documentation for developers, and I'm a little bit confused regarding whether custom post types are what I need. So, I want to encapsulate a collection of images ...
Druid's user avatar
  • 1
0 votes
0 answers
8 views

Article from Custom Post Types with different slugs with redirection intact

"I need the articles from my Custom Post Type 'Horóscopo' to have only the slugs of the Author and the 'Signos' Taxonomy in the link, while keeping the redirection intact."
João Pimentel's user avatar
0 votes
0 answers
12 views

Normal Posts and Custom Posts with Date Query

I have a custom post type with a date query and these posts only shows on the post archive list when I create a normal non custom post and save this normal post then both the custom post and normal ...
Angel Hess's user avatar
0 votes
1 answer
11 views

Category url; have it only answer to 1 category

I have a permalink custom structure that looks like this /blog/%category%/%postname%/ Thing is, that would make that if a post has category-1 and category-2 assigned, both /blog/category-1/post/ and /...
Fredy31's user avatar
  • 858
0 votes
0 answers
11 views

Pagination with WP_query giving same items in each page

I have around 250+ blog posts and currently in my custom theme I've implemented the functionality of showing the blogs with pagination option. But in all pages it is showing the same posts. <?php $...
buzz's user avatar
  • 101
0 votes
0 answers
15 views

problem solving in website loading

/*! elementor – v3.16.0 – 20-09-2023 */ .elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elemenhow tor-widget-image a img[src$=”.svg”]{width:48px}.elementor-...
Vidhi shah's user avatar
0 votes
0 answers
21 views

How to add a shortcode for an image in the following function

This is a function by Tobias Keller for PRG Pattern Link Masking where title shortcode is link text. How то add image shortcode alternatively instead text ? $use_prg = new prg_pattern(); class ...
arteaster's user avatar
0 votes
0 answers
11 views

Dynamically Adding Product Variation Values WooCommerce CRUD [closed]

I am writing a plugin for a client that will connect to their internal API and sync all of their products to their WooCommerce WordPress website. There are approx 94 000 products to sync. I have ...
Jacques Koekemoer's user avatar
0 votes
0 answers
11 views

Unable to get the correct URL using get_the_post_thumbnail_url() in wp-admin

I've added some custom fields to a rest route. I want to retrive the post thumbnail for my CPT and I'm using this code: This is the code I'm using to add the post meta to the CPT after an image is ...
ICTDEV's user avatar
  • 111
0 votes
1 answer
30 views

'403 Forbidden' when publishing a post containing different blocks

I'm experiencing a werid issue I never ran into before. I'm on WordPress 6.3.1 and each time I try to publish a post on my blog I get the "Updating failed. The response is not a valid JSON ...
Css14's user avatar
  • 13
0 votes
1 answer
10 views

Unable to Modify Link Text

I've somehow managed to disable URL text control on a site. The two images below show a post with a URL on two sites, on one I have no ability to change the displayed text other than by editing the ...
Rory Simmonds's user avatar
0 votes
0 answers
16 views

Single Sign On in Wordpress

I am provided with a api for single sign on service. They ask me to integrate it in the wordpress frontend for user login. How can I use something that have functionality like SocialiteProvider of ...
disgestobot's user avatar
0 votes
0 answers
29 views

Get realtime title and featured image value in Wordpress block

I'm building a WordPress block in React, and I need the title and featured image to be displayed in the block. So I need a way to get the title value and the featured img URL in real time, so it ...
Michael's user avatar
0 votes
0 answers
16 views

Wordpress Elementor Forms - Restrict Email Field to ONLY allow from company domain

This is quite a workaround - but I'm only a freelancer with this company and working within what they give me. I am using Elementors pop-up feature to restrict people from visiting a page unless they ...
Kaitlyn's user avatar
0 votes
1 answer
16 views

How do I know if the custom theme is a child theme or a full-custom theme?

Inherited a custom built WordPress site. How do I know if the theme it uses is a child theme or a full-custom theme? I would like to delete the unused themes for security and to free up space, but ...
mimibushart's user avatar
0 votes
1 answer
20 views

getEntityRecords/useEntityRecords: How to use CPT metadata?

I use getEntityRecords as described in the official data API tutorial (https://learn.wordpress.org/lesson/retrieving-wordpress-data-records/). I.e.: const [searchTerm, setSearchTerm] = useState( ''...
gresch's user avatar
  • 111
0 votes
0 answers
9 views

Landing Pages and Pop Up Overlay

On some of my landing pages, I now get Missing Required Argument(s) when i put in name and email on the pop up overlay. Some I know used to work because I had sign ups from them. Some of them still ...
Gin C's user avatar
  • 1
0 votes
0 answers
6 views

Display posts from Custom Post Type, group by term, arrange term groups and arrange items within groups by menu order

I have a Custom Post Type 'my_cpt' and a custom taxonomy 'types' which has several terms, all of which have posts. I want to do is be able to control both the order of the groups (terms from my custom ...
Tom Latham's user avatar
0 votes
0 answers
11 views

How to use AJAX in wordpress front end?

I have two inputs in an HTML Widget block on a post. What I need to do: send the inputs (from the html widget) value to AJAX, construct and execute a query, render a table with the results back on the ...
ProfoundHypnotic's user avatar
0 votes
0 answers
18 views

Filtering context for render_block function

I am trying to use render_block within a function called from the WP admin via AJAX The render_block returns null/empty however if I run my function using the wp hook returns the rendered HTML for the ...
Ben H's user avatar
  • 363
0 votes
0 answers
9 views

Elementor + ACF: How to insert dynamic JSON-LD formatted code into ACF field without sanitizing the script tag? [closed]

On a normal website, I am able to add JSON-LD structured data, such as below, into a Elementor HTML widget, in a proper way. However, as soon as I insert JSON-LD format into an ACF field (Textarea), ...
Kasper Toft Braun's user avatar
0 votes
0 answers
14 views

If InnerBlocks.Content is empty?

I'm trying to check if InnerBlocks.Content is empty, in order to creation a validation to display a div when the block is empty or not. It's possible? I'm using the npx @wordpress/create-block tool to ...
Giovanna Penna Eirada's user avatar
0 votes
0 answers
16 views

Delay Issue: Using Wget with JSON Endpoint – Need Help Understanding Headers

On a WooCommerce website, I have a REST endpoint created with register_rest_route that returns a JSON response. To perform a routine with a certain frequency and urgency, I have added this instruction:...
Infocurci's user avatar
0 votes
1 answer
16 views

Query top level custom post in taxonomy

This is my first post, I'm a bit stuck. I have a custom post (dan) and taxonomy (dnas), with hierarchical categories. I want to make a query resulting in posts at toplevel (hoofdcategorie01, ...
Dennis's user avatar
  • 1
0 votes
0 answers
12 views

How do I load styles into the block editor admin screen?

The core file 'load-styles.php' generates css styles. Some of the styles interfere with the block editor. I would like to pass in my own style rules that override the styles generated by 'load-styles....
bob.dobbs's user avatar
0 votes
1 answer
15 views

Gutenberg InnerBlocks noallowedblocks on parent but allowedblock on Child

This is a continuation of the following post: Custom Gutenberg block with nested InnerBlocks renderAppender not displaying add button I solved one problem but created a different problem. I'm ...
Phil Huhn's user avatar
  • 143
0 votes
1 answer
39 views

How to make my logged-in user-role shortcode displaying name instead of slug?

I am trying to get my frontend to show the role of a logged-in user via Shortcode. I have the Shortcode functional (see below) but it displays the slug and not the real name in the frontend. This is a ...
user235991's user avatar
0 votes
0 answers
7 views

Let Dokan / MulitvendorX vendors set currency per product. Best approach?

Got a question that I'm hoping the community can help me out on. I want to start a multivender e-commerce site, focusing on American and Japanese customers. I need to let vendors set prices in their ...
Mazeboy's user avatar
1 vote
0 answers
13 views

Block editor layout not present in post editor

I have a WordPress block theme entirely built using the block editor, i.e. empty html template files. Since a recent update of WordPress, the post editor is not abiding to the width applied in the ...
S. Peats's user avatar
0 votes
0 answers
9 views

Help with vehicle performance website

Creating a wordpress website for a family member i need to create a dropdown menu after something similar to this Once the vehicle details are selected when clicking the view tuning options i need it ...
SDot's user avatar
  • 1
0 votes
1 answer
36 views

Wordpress change role from administrator to author by itself (automatically)

do anybody know this kind of phenomenon? I do not have any user managing plugins installed in my WP, but after some interaction e.g. editing pages or creating postings (its not matter) WP changes for ...
RestAPPDev's user avatar
0 votes
0 answers
8 views

WooCommerce REST API Error "Security Violated"

When I try to do a POST call to create a customer via REST API, I get “Security Violated” text back in response with status 200 OK. How to find the cause of it?
Babu James's user avatar
0 votes
0 answers
17 views

How do I enable automatic stacking for mobile?

I've put in a row of blocks but when I view the blocks from mobile it stretches them out instead of stacking them. I've been playing around with it but I can't seem to make it work.
Bee's user avatar
  • 1
0 votes
0 answers
6 views

How to retake a webcam image through phone camera

am creating a form where guests take a picture through their phone camera before submitting the form. So the webcam works well on desktop/computer but on mobile devices I notice when the Retake ...
Titus's user avatar
  • 1
0 votes
1 answer
18 views

UsesWP plugin prevent blocks notification mail for a new user

On a fresh-brand-new-blank wp, I've installed "UsersWP plugin" and it works well. But it sounds like as soon as the plugin is activated, the mail to the admin for notifying him a new user is ...
nico's user avatar
  • 25
0 votes
0 answers
17 views

load-styles.php generates css rules. How are the generated styles determined and how can I alter them?

I want to permit editors to edit pages using the block editor. For the theme I'm working on, edits done with the block editor in the admin screen (the backend) are accurately reflected in the front. ...
bob's user avatar
  • 237
0 votes
1 answer
41 views

How to get block editor block inspector attribute value in my react block

I have used the scaffolding to create a block that is react on the front end. The code is below. As you can see I have added two fields to the block but I do not know how to get the values entered in ...
brothman01's user avatar
0 votes
0 answers
6 views

sh ow different PDF based on URL param

I have a WP post that displays information based on a URL param from this post: https://cascoly-images.com/prints-products/ this works fine for creating the links i need - eg choose 'Rainier' and ...
steve estvanik's user avatar
0 votes
1 answer
25 views

RSS Feed Question about lastBuildDate

We use our RSS feed to create a daily email digest of daily posts. Posts are scheduled every evening to post early in the am the next day. We use a MailChimp RSS campaign to pull in the post data and ...
Balex's user avatar
  • 1
0 votes
0 answers
11 views

Suggestions for building a WordPress survey website with these specific requirements [closed]

I'm hoping to get some suggestions from the community regarding plugins for a new WordPress site I'm currently scoping. Here are the details: Brief Overview: The site is essentially a survey website. ...
VoidVortex's user avatar
0 votes
2 answers
37 views

Wordpress does not generate robots.txt

My Wordpress does not generate a robots.txt file. I have no idea how to solve this and I hope somebody has met with the same problem and knows of a solution. Thanks in advance! Bye Ward
Ward van den Berg's user avatar
0 votes
0 answers
29 views

Add "reviewedby" in Wordpress posts

​Hello, I was wondering if there is a way to add "reviewedby" + name (potentially with a blue checkmark) under the author as displayed in the attached example. ​Also, I would like users to ...
User3591's user avatar
1 vote
0 answers
35 views

Wordpress Custom Post Type Archive, filter by category and get pagination working

I have created 9 different Custom Post Types via ACF and an assortment of custom field blocks for 8 of them. Those 8 are used to create different content, based on requirements for each post type. The ...
Mitch S's user avatar
  • 15

15 30 50 per page
1
2 3 4 5
2305