All Questions

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

Attempting to specify viewScript, in a custom block, results in a register_block_script_handle error

I've been trying to add some custom JavaScript to a custom block, that's part of a bigger library. I believe that specifying a viewScript is the correct way to do this, but I'm having trouble getting ...
  • 206
0 votes
0 answers
9 views

I make sticky post for my archive page for custom post type with ACF field and loop is not working

I make sticky post for my archive page for custom post type with ACF field and loop is not working while($query->have_posts() ){ $query->the_post(); $sticky = get_field('...
0 votes
0 answers
19 views

I need to get all categories from a WP_Query

Actualy i'm doing this $loop = new WP_Query($args); while ($loop->have_posts()) : $ID = $postData->ID; $freeCategories = get_terms(array( 'taxonomy' => "product_cat"...
0 votes
1 answer
14 views

Update Custom Field daily within 7days

Is it possible to update the custom field daily within 7days? For Example: When a user created a new post, inside the post there's a Custom field name Points Earned. I would like to updated the Points ...
  • 13
0 votes
0 answers
36 views

Escaping data from database (users table) is necessary?

I've submitted a plugin for review and it was not accepted as it needs some fixes with data sanitization and escaping. One of the flagged examples was this line: echo "<option value=\"$...
0 votes
0 answers
25 views

CSS Styles specific to Admin Sidebar not loading

I have several sites where I have loaded a custom stylesheet for the Admin. They work fine in both the TinyMCE editor and the sidebars. I have one site where the custom stylesheet targets the TinyMCE ...
  • 763
0 votes
0 answers
11 views

Remove login fields from /customer-account page [closed]

I have a site using WooCommerce and Dokan, and I have set up combined registration form in the customer-account page, some fields from WooCommerce and some from Dokan. I want to use the /customer-...
  • 1
0 votes
0 answers
27 views

Filter output of posts (Rest API)

I have some custom post types. I use register_post_meta to register meta fields - with show_in_rest so the data can be accessed via the Rest API. I use prepare_callback to run a custom function to ...
  • 113
0 votes
0 answers
18 views

Two Permalinks with one Taxonomy (custom taxonomy) and (custom post type -> custom taxonomy)

I already readed this thread: "Permalinks: custom post type -> custom taxonomy -> post", but it didn't help me how I want it. I'm having trouble working with WordPress rewrite rules, ...
0 votes
0 answers
9 views

Conditional display based on ACF checkbox

I have an ACF checkbox sub field in a group field on an options page. It has 4 options, and is set to return “Value”. I am trying to make a series of radio buttons that correspond to these options in ...
  • 29
0 votes
1 answer
12 views

I'm getting the following error: Fatal error: Uncaught Error: Call to undefined function oil_paint_regeneration() [closed]

This is for a WordPress plugin that automatically regenerates and applies oil painting effect to featured images attached to a post published by user_id=1 to user_id=5, 3-5 minutes after the post has ...
0 votes
0 answers
15 views

Remove colon from CTP UI "Singular Label"

How can the colon be removed or changed from the Custom Post Type UI/Taxonomies/Singular Label? This colon shows up in my page title in Wordpress and looks like this "Recipes for: Dinner". ...
  • 35
0 votes
0 answers
5 views

Getting error - preview cannot be loaded when activating WooCommerce plugin [closed]

After activating the woocommerce plugin Version 7.3.0 and try navigating to the shop page via “edit with elementor” . I am seeing the “preview cannot be loaded” error. In my testing, I can see as soon ...
  • 101
0 votes
0 answers
11 views

change breakpoint widths for divi theme tablet view

Is there a way to start css for tablet at a higher width than the standard breakpoint width? My desktop header-nav breaks before turning into a dropdown. Is there a way to add css so that my header-...
  • 1
0 votes
0 answers
13 views

Redirect a specific User role not admins automatically to view the post that they just updated

Can someone please provide a code snippet where a specific user role will be redirected automatically to view the post that they update but don't redirect if they publish?
0 votes
0 answers
14 views

Display QR Code in e-mail after submit contact form

I also have a problem with generating a qr code. I use Contact Form 7 together with Flamingo to generate a QR code. This QR code is generated in the browser, but I don't know how to make it appear in ...
  • 1
0 votes
0 answers
10 views

jet engine listing for every single taxonomy in post type [closed]

I have created a post type with jet engine and 3 taxonomies for it. I want different listing design for each single taxonomy. Currently, I can only design a listing for the whole post type.
0 votes
0 answers
7 views

Create a custom redirect link that tracks the first visited page and after submitting form goes to first page using formidable forms plugin? [closed]

I have this form that I created using formidable forms pro plugin but instead of using the normal redirect option after submitting it, I want the form to go to the first visited page. Is there a way ...
0 votes
0 answers
17 views

Selectively override Easy Digital Downloads protection via filter

I am working on a Patreon integration for my Wordpress site which uses Easy Digital Downloads to paywall downloadable products. Patreon members access the site via oauth, and I would like them to have ...
  • 1
0 votes
0 answers
8 views

SVG showing only in square ratio (using elementor) [closed]

I used Elementor's 'Icon' widget to add a SVG logo. The original ratio of the SVG, let's say is 2:1. But after adding, it's taking square space, there is empty space above and below the SVG.
0 votes
0 answers
17 views

How to check record is exist or not in WordPress CRUD Operation with $wpdb

I have been trying to custom CRUD Operation for in Wordpress Page Template, Where i need to handle CRUD Operation but I need to I need to check whether record is exist or not before Insertion. Here is ...
0 votes
0 answers
11 views

RTL in posts only

I'm using the Sunshine Wanderer theme, which supports RTL. But the sidebar override the main column once I choose Hebrew as the language. I would like to leave the language as English, but that the ...
0 votes
0 answers
16 views

Wordpress administration is gone after creating base theme

I have following files for a base theme: wp-content/themes/base/style.css (empty) wp-content/themes/base/index.php // index.php <?php declare(strict_types=1); echo wp_nav_menu(); After ...
  • 101
0 votes
0 answers
16 views

Fresh Wordpress installation not able to simply show page content

My first Wordpress installation, it is version 6.1.1. My goal is just to have simple static pages. Even if I try to see the content of the pre-installed dummy "Sample Page" (/?page_id=2), it ...
  • 101
0 votes
0 answers
6 views

Upload the images folder with sub-folders directly to server

I have a News_images folder with a lot of subfolders in it. Each subfolder contains images for one post. I want to upload the whole News folder to the server then access the subfolders with WP Media ...
0 votes
0 answers
18 views

How to change all the urls of the WordPress site?

We have created an online store with WordPress on a domain and now that we have finished testing, we must take it to the final domain. I only need a method to change all the URLs of the site I have ...
2 votes
1 answer
18 views

WordPress Two Level Filters on Getting Custom Taxonomy Terms

I have a Custom Post Type Called movie and I have two taxonomies genre and quality associated with that. Now I need to get/filter all terms IF genre = 'action' AND quality = 'HD' Using this code I ...
  • 515
0 votes
0 answers
9 views

Is it possible to change the error message "This is a required field" for all checkout fields?

I'd like to know if it's possible to change the error message "This is a required field" for all WooCommerce checkout fields. I would like to translate it and, unfortunately, TranslatePress ...
0 votes
1 answer
18 views

How to overwrite image if it already exists - Wordpress, Gravity form

How do I make the old file replaced when the user uploads a new one? Now the files are named a1.jpg, a2.jpg, a3.jpg. If the user uploads a.jpg, then I want to overwrite the a.jpg that already exists. ...
0 votes
1 answer
12 views

Group By query based on Custom Field

Hello I have a field name team and I would like to get the total amount that each team has been gatthered Im trying to echo the team name and total amount and group it by team but it doesn't work. ...
  • 13
0 votes
1 answer
20 views

How to sort custom sortable column by custom table value

I have a custom table with data in it that I am showing in a column. I would like to make this column sortable. Lets say that the custom table has three values for the sake of simplicity. row_id, ...
2 votes
2 answers
23 views

Theme's featured image option is not showing up

I'm new to WordPress development. I watched a video on how to add featured images. For some reason it's not working, and I can't really figure out why. The option for featured image is not showing at ...
  • 21
0 votes
0 answers
12 views

Is there a way to display the 'Read more' link if it's within a range?

I'd like to only display the first 20 words from an excerpt with a 'Read more' link. The code below works returns the 'Read more' link only if the excerpt has more than 20 words. wp_trim_words( $...
  • 11
0 votes
0 answers
18 views

How to specify server path in code?

I am attempting to get the ACE editor to display wp-config.php for editing within the admin area (writing a plugin to do this). I assume I need to specify the server path for file_get_contents() but ...
  • 11
0 votes
0 answers
12 views

Removing custom post type name from permalink

There are numerous threads on this, however, none of them seem to resolve the issue for me. Background I have a custom post type called "Landing pages", which has been registered like this: ...
  • 141
0 votes
0 answers
10 views

Set link dialog to open in blank by default

I'm trying to find a way to set the link option to open in a new window by default. I found this clever plugin but it is outdated. https://github.com/whyisjake/new-tab-always/blob/master/new-tab-...
  • 11
0 votes
1 answer
24 views

filter on get_posts efficiently

I have posts with the following categories: A category that is a year(2017,2018...2022), a category that is type:(worldwide,Europe, local) I am trying to give users in the frontend advanced search ...
0 votes
1 answer
20 views

Categories, tags and thumbnails panels are not visible in the Block editor's post menu

Using the Block editor I'm not able to see or activate the Categories, tags and thumbnails panels. I'm using a custom theme and all plugins are disables. This is what it looks like in the block editor:...
  • 101
0 votes
0 answers
21 views

WordPress database error: [Table 'bitnami_wordpress.questions' doesn't exist]

I have wordpress installed via bitnami and i try to make a select request for questions (a table in my DB) However it gave this error WordPress database error: [Table 'bitnami_wordpress.questions' ...
2 votes
0 answers
22 views

How do I stylize selected comments?

I built my own theme from scratch, which has worked well for years, but I'm very rusty now on how I did it, and I could do with some help with my re-learning process. When certain people comment (and ...
0 votes
0 answers
14 views

Remove embed url for internal links

I have a forum built with bbPress. How can I deactivate embed url for internal links? For the rest of the links I want to be the same like it is right now. What I tried is this but without any results:...
  • 1
0 votes
0 answers
21 views

Rewrite Rule in htaccess convert query string into slashes

Please examine and correct this code: I want the code to work such that if somebody visits https://example.com/music/?record_year=2022, it should be https://example.com/music/record_year/2022 instead. ...
1 vote
1 answer
23 views

Do plugin auto-updates also run for a lower version?

We are planning to upload a new major version of our plugin to the WordPress Plugins Directory. As part of our contingency planning, we wanted to understand how rolling back to the old version might ...
  • 11
0 votes
0 answers
13 views

Add taxonomy fields of posts into RSS feed

I have added three new fields to a custom taxonomy for my posts using CPT UI and need them included with each post in the RSS feed. I have not yet found a solution. Any help is greatly appreciated.
0 votes
0 answers
6 views

One WP website as content source for several others

Trying to think of a solution for such request: One WP website used as a main content source for multiple others. This website is not a "real" one, it is used as an improvised content ...
0 votes
1 answer
6 views

Icon not shown in Dropdown menus in Twenty Seventeen Theme

I guess I removed the image used for the dropdown menu while cleaning up my site that uses the Twenty Seventeen theme.Now it shows nothing (or a box) next to a dropdown menu which is not ...
0 votes
0 answers
18 views

Change in credit card payment button for woocommerce

good work everyone! What I want to do is to change the way in the woocommerce credit card payment button. I want to make the button part like this button, center part will also show total amount ...
0 votes
0 answers
7 views

Change email notification language based on the site language in WPForms

My site currently supports 4 languages (German, Italy, French, English) with the help of translatepress and there are several contact forms which are built with WP Forms plugin. Users get notification ...
  • 101
0 votes
0 answers
16 views

WP Customizer get control value on change

I've written a function for my WP theme based off of this question:Changing the entire control choices using wp.customize with JavaScript My code is as follows: ( function( wp, $ ) { wp.customize....
  • 33
1 vote
0 answers
24 views

Categories not showing when all of the posts are private

I have a blog and all of the posts are private (only logged in users can view them). Still, when the users are logged in, Categories widget is still empty although there are number of posts assigned ...

15 30 50 per page