All Questions

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

Trying to create a page as a menu item in the admin while keeping the admen panel visible

I'll try my best to explain this in a way that makes sense. I'm customizing the WP admin dashboard and trying to add more elements to it by adding new menu items in the admin panel. Now when I create ...
user avatar
1 vote
0 answers
9 views

update_callback is not working in register_rest_field

I am registering a new field in my custom post type using register_rest_field. But I am unable to add/update the field using the rest API of post add/edit. However, the get_callback function is ...
user avatar
1 vote
0 answers
10 views

Gutenberg theme development: how to add "headers" option under styles > colors > elements?

I'm not sure if this is even possible as I'm still learning about Gutenberg full site editing theme development. I've done my best to research this and read over the documentation before asking this ...
user avatar
0 votes
0 answers
9 views

LinkControl - how to toggle opensInNewTab

When I click the "open in new tab" toggle, nothing happens in the UI. The onChange is triggered. How do I set the toggle to true? I am using the following: https://github.com/WordPress/...
user avatar
  • 101
0 votes
0 answers
8 views

CPT: Enable Gutenberg, but disable editor field

I have a CPT which does not need an HTML/content/editor field. It seems I have to add at least "supports" => [ "editor" ] to the args of register_post_type(), but then it is ...
user avatar
  • 1
0 votes
0 answers
6 views

How to remove space between header and table in widget?

The answer might be obvious since I am not big into web development. I noticed that tables have some space at the top that paragraphs don't have (both are preceded by a h2). How can I remove said ...
user avatar
  • 101
0 votes
1 answer
6 views

Hide custom column in admin template screen (Elementor)

My plugin adds a custom column to admin posts and pages screens but it's also adding it to the Templates (Elementor) screen. I know users can hide this themselves, but I'd rather do it in my plugin. ...
user avatar
1 vote
0 answers
13 views

WordPress notification if new post published

I use WordPress and I want to alert users if new post with post_type = job_post was published. Also I want to show amount of new post. So I add to function.php global $new_job_count = 0; function ...
user avatar
0 votes
0 answers
16 views

Wordpress site identation issue

i hired someone whileback to build me a WordPress site https://printersvalley.com/ . But the site has a issue with indentation. The posts are not in proper lining can someone tell me how to do it ? or ...
user avatar
0 votes
1 answer
9 views

Bulk Updating Post Date in 1 day Increments

I have 1700 Motivational Updates + Write ups imported to WordPress. The problem is they are all published on the same date. I'd ideally like for them to be published once per day. I researched a lot ...
user avatar
0 votes
0 answers
15 views

Unusual Folder Structure On WP Install [closed]

I’m going to potentially be looking after a WP site, and it has a folder structure I’ve never seen before. Instead of the normal wp-content > themes > themename the main WordPress install seems ...
user avatar
  • 101
0 votes
0 answers
21 views

Inject "fake" category to widget/block

I have a regular categories widget (or "block" in the new terminology), that creates a <ul> with my categories. I want to add a fake category for linkbuilding reasons, an entry to ...
user avatar
0 votes
0 answers
8 views

What are the best WordPress plugins for using WebP images? [closed]

Looking for the best WordPress plugins for using WebP images. I want to optimize new images, but also images that are already uploaded to the website.
user avatar
0 votes
0 answers
10 views

Commercial checkbox in Wordpress registration form [closed]

I'm building a website and I need a checkbox in the registration form ir order to know if the user wants to receive commercial communications. I also need to save that information in the user profile ...
user avatar
0 votes
0 answers
12 views

Sharing variables in both actions wp_footer and wp_ajax

I have some code in my functions.php that, under a specific time condition, showes a popup that notices about some database update routine. What is happening here, is that when this condition happens, ...
user avatar
0 votes
1 answer
9 views

register custom post inside a custom post

suppose I made a custom post named 'event' , and now i have to add another custom post type inside a the event named 'organiser'. Hello. I created a custom post type as ‘events’. I want to display ...
user avatar
0 votes
0 answers
6 views

Get current order's SKU and keep it in database [closed]

Time to time we change SKU in a product. But we want to keep old SKU in order tables. Woocommerce change old orders' SKU's one you update the product. So we had below code and was working great. But ...
user avatar
  • 1
3 votes
1 answer
17 views

How to properly package a block plugin

I've created a little WordPress block, starting from the npx @wordpress/create-block template. All is well and good, but I need to fix the packaging process. The main plugin file includes a couple of ...
user avatar
0 votes
0 answers
10 views

No country flag on Contact Form 7

I'm using Contact Form 7 on my website (built on Frontity), with the "International Telephone Input for Contact Form 7" plugin enabled. I've added the following tag for the phone number ...
user avatar
  • 1
0 votes
1 answer
12 views

I need some CSS to get the following aligned [closed]

I'm using the post widget from Jetengine which is great because it let's me add custom fields easily however it's lacking a huge option for me which is the option to set the images to cover so the ...
user avatar
0 votes
0 answers
12 views

how to create hierachial taxonomy and manage under single post type?

i have created Farmers Post type for managing farmers data in wordpress. now i want to create hierarchical taxonomy as below: ->state ->district ->g.panchayat ->village ->farmers Please ...
user avatar
-1 votes
0 answers
7 views

How to set country search bar dropdown in the way that when I will select the country the information about this country will appear on the same page

I need to add country drop down in the way that when I will select country and press search, on the same page will appear the information about this certain country. Example: List of distributors, ...
user avatar
  • 1
0 votes
1 answer
12 views

Auto Generate Post Title from 2 Custom Fields

I would like to generate the post title from 2 custom fields, 'job', which is a taxonomy, plus 'date' which is a date picker, not the date of the post. This is for a custom post type called 'job-...
user avatar
0 votes
0 answers
8 views

Flatten Responses returned via WP REST API via WP_Error for obfuscation

According to this; I'm setting up the REST API of a website project. I'm returning the WP_Rest_Response for no matter which request in every possible end, with an according http status code, etc; no ...
user avatar
  • 286
0 votes
0 answers
6 views

Remove parent category from child/sub-category page URL in Wordpress

I want to remove the parent category from sub-category page URL. (acuually I need it only for a specific parent-category) f.e, convert the URL of all sub-categories pages under this parent-category, ...
user avatar
  • 1
0 votes
1 answer
10 views

Use a custom block in another block

Let's assume that I have a music player block and it's working fine. I now want to add another block for playlists and I want to use this single player block in this block. Is it possible to import ...
user avatar
  • 325
0 votes
0 answers
13 views

Ajax Favorite from foreach (how to specify which result result is processed)

I created my first ajax script which is an add-to-favorites option on my real estate site. On the single property page the setup works great...I check if the property is already saved, display a ...
user avatar
  • 3
0 votes
0 answers
3 views

how can i create pagination for child term. Here is my code

$term_id = get_queried_object()->term_id; $termchildren = get_term_children( $term_id, 'danh-muc-dich-vu',array('number' => 4)); ...
user avatar
0 votes
0 answers
4 views

Tags hierarchical

I changed the default code in the wp-includes/taxonomy.php file to: register_taxonomy( 'post_tag', 'post', array( '...
user avatar
  • 101
0 votes
0 answers
3 views

3 Different Prices for Woocommerce Product

I want 3 different prices for my woocommerce products. First is Regular Price and then we have Sale price which we already have, but I want to add different discounted price for the customers who pay ...
user avatar
0 votes
0 answers
12 views

Lots of 404 errors of pattern <BLOG_URL>/null&rand=<RANDOM_NUMBER>. Why?

I can see a lot of 404 hits logged in the redirection plugin. It looks like they are made from some bad actors/bots. Does anyone has same experience? What is the exact root cause? Any appropiate ...
user avatar
  • 101
0 votes
0 answers
7 views

how to remove cancel order button in woocomerce

I'm trying to remove the Cancel Order button on the Checkout page, I have tried looking for a plugin but I couldn't get any. Can anyone help me with the checkout page? Thanks in advance.
user avatar
0 votes
1 answer
14 views

check that the data exists before sending it to wpdb

When I send data to wpdb from form I can have some empty fields. How can I add conditions to array of data inside array or before insert wpdb to send only filled fields ? The fields concerned (for ...
user avatar
  • 11
0 votes
0 answers
11 views

Free search and custom taxonomy query not providing the same result

Two queries that should function the same, provide different results. I've created a custom post type called maarchey_shiur. I've created a custom taxonomy called maarchey_shiur_categories. If someone ...
user avatar
  • 96
0 votes
0 answers
7 views

how to change add to cart button to call for price button in one of product variation?

I want to replace add to cart button for one of my woocommerce product variation options to call for price button. how can I check that variation is selected to reach this goal?
user avatar
0 votes
0 answers
19 views

How can I add random alphabets in wordpress permalink posts structure

I want to add random alphabets to wordpress posts permalinks with the following order: current permalink structure sitename.com/view/%postname%/ https://www.sitename.com/view/this-is-my-post-title/ to ...
user avatar
0 votes
0 answers
10 views

How to collect heading tag in a single post, such as Microsoft Word?

This is what I need (without plugins and without adding shortcodes to all posts) Headings h1-h6. Collect lower headings and text. Example: Like Microsoft Word. (Like this file) Example: Links that ...
user avatar
-1 votes
0 answers
5 views

How to make shortcode wordpress filter and ordering 1 category from woocomerce

How to make shortcode wordpress filter and ordering only 1 category from woocomerce? when i try to make the shortcode i cannot ordering 1 category, because all of category automatic show, same if ...
user avatar
0 votes
0 answers
10 views

Moving featured image to top of new post editor screen

For some reason I'm having a hard time finding the right file to edit (even though I've done it before) but I want to move the featured image section to the top of the sidebar for the 'new post' ...
user avatar
  • 113
0 votes
0 answers
19 views

How can I hide the ACF shortcode when empty

I am facing a issue. I am using a snippet from github. It renders the URL with some attributes. However, when empty, the short code is still displaying and is not being hidden. Here it is: /***********...
user avatar
  • 13
0 votes
0 answers
7 views

Editable select options in quick edit OR in plugin settings

My plugin includes a select field that appears in the Quick Edit, but right now the values are hard coded in the plugin. I'd like to make these select options editable (add or remove option from ...
user avatar
0 votes
0 answers
7 views

Cookie Limitations for WordPress Site? (TablePress Data)

I'm new to WordPress and all forms of WebDev. I'm making a website that focuses around Checklists for trading cards. I do this in WordPress by creating a Frontend Checklist list (1 list per card) to ...
user avatar
0 votes
0 answers
9 views

Same category and post base

I’d like to have the following stucture: Single Post: test.com/blog/post-name/ Category: test.com/blog/my-category-name/ If I go to permaliks and set: test.com/blog/%postname%/ it works okay But if I ...
user avatar
  • 1
0 votes
0 answers
20 views

Ajax call not working in wordpress through a plugin

I have 2 Ajax call the first is working but when it send the data to other the file send_data.php and when I try to run any wordpress function which is add_post_meta it doesn't work! This's the first ...
user avatar
  • 5
0 votes
0 answers
8 views

Set QTY to 0 With WP All Import from CSV

I'm working with Woocommerce WP All Import to import stock quantities from my supplier's CSV Feed. However, when the item is out of stock at the Supplier, the product is removed from the CSV file, and ...
user avatar
0 votes
0 answers
6 views

Wordpress keeps redirecting to localhost

Whenever I enter my domain name I can access all other files, but once I go to /wordpress it'll redirect me to localhost (which doesn't work). My wp-config contains the right address, so does my ...
user avatar
0 votes
0 answers
6 views

How to change page ID in Polylang?

I want change link to another page in PolyLang. Example I added PL version and now I want change link to point another page. I can only add new page I cant edit link in PolyLang. I know that Polylang ...
user avatar
0 votes
1 answer
16 views

Wordpress Full Site Editing: How can I access my posts listing page?

In WordPress 6.0, I've created a block based theme using fullsiteediting.com's theme generator. It had a default homepage which listed posts. Within the block editor (sidebar->Templates->Add New ...
user avatar
0 votes
0 answers
9 views

Using Regex to remove orphan p tags (not empty)

I was using a custom CSV importer to import a particular data set to my WordPress site. The import is done and about 700 posts are created. Everything is perfect except some orphan <p> tags are ...
user avatar
0 votes
0 answers
12 views

custom image size not being displayed in loop

I believe I'm missing something on media images. I have created a custom image size with this code: add_image_size( '250-square', 250, 250, true); // cropped I have then uploaded images. When I ...
user avatar
  • 5,322

15 30 50 per page
1
2 3 4 5
2252