All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
122 views

Custom archive page for custom taxonomy and pagination issue

so this is something I am trying to figure out for quite some time about my custom archive page for a custom taxonomy 'workplace'. There is many workplaces, and what i want is to display the products (...
  • 16
0 votes
1 answer
115 views

Asynchronous multiple requests 401 Unauthorized

I'm writing a Wordpress Plugin that sends requests via WooCommerce API. I need to send multiple GET requests to the API and instead of using a for loop and sending each request one after another, I ...
  • 21
0 votes
0 answers
65 views

'manage_users_custom_column' is a filter, but 'manage_posts_custom_column' is an action. Why?

I've been implementing some custom columns in admin tables for a Wordpress project, and I was caught out by the differences between manage_users_custom_column and manage_posts_custom_column (or ...
0 votes
0 answers
21 views

Gallery functionality in custom theme

I'm new to creating my own theme and I barely scratched the surface of this topic so far. But my end goal would be to create a "gallery like" functionality. Maybe there are some functions or ...
  • 101
0 votes
0 answers
35 views

White Screen in Home Page

Initially I installed WordPress in my Linux Mint OS. It was working properly. Later I added another Database to the site. I changed siteurl and home value at wp-options table. I changed Database ...
  • 407
0 votes
1 answer
56 views

require_once not working in plugin wordpress

I'm creating a plugin and I have to add some custom controls through the plugin. Here is the code for the custom control defined in featured-types.php - function ...
0 votes
1 answer
561 views

Gutenberg output URL to post from attribute with post ID

In my pages, I have a number of custom blocks that allow you to select a page. In the save function, I save the pages URL. registerBlockType("djave/blockwithlink", { attributes: {...
  • 256
0 votes
2 answers
260 views

Ninja Forms – change redirect URL based on API response?

How can we change the redirect_url for a redirect action based on the response from an API? I have created a custom action (extending NF_Abstracts_Action ) that runs during submission with late ...
  • 9,522
0 votes
1 answer
84 views

Gravity Form Repeater File/Media Upload Not Working

Gravity form repeater currently not support file/media upload as mentioned in doc. I am wondering is there anyone who fixed that issue or any solution that can help me? I am getting following error:
0 votes
1 answer
148 views

Is it safe to upload JSON files to upload folder?

I'm using wp_upload_bits to upload JSON files to my WP's upload folder. I get the error "Sorry, this file type is not permitted for security reasons" Is it safe to upload JSON file anyway?
0 votes
1 answer
31 views

Custom payment method after payment user is logged out on thank you page

I am using a custom payment method called euplatesc for donations. The form: $postid = get_user_meta(get_current_user_id(), '_donar_post_id', true); $dataAll = array( //'amount' => ...
0 votes
0 answers
19 views

Using some Loop or repeatable fucntion in AJAX and PHP to reduce repeatability

I am having a code, in which textbox border color changes, if values exist in wordpress database table. Briefly, if match1 textbox value exist in table:xrd_references, column:ref_code, then the match1 ...
0 votes
1 answer
12 views

Wordpress managing dates that change in text regularly

I have been searching for a way to better manage dates on a WordPress website. I work at a college whose website is on WordPress. One issue we continuously run into is out of dates for reoccurring ...
  • 1
0 votes
0 answers
28 views

Add product image to Woocommerce downloads page

I have a site that allows customers to download digital files. I'd like to add the product / feature image on the '...my-account/downloads/' page where there are currently four columns for Product ...
0 votes
0 answers
66 views

Why is my pagination /page/2 taking me to index.php?

Why does my pagination take me to sites front page instead of page 2. The url seems to be correct mydomain.com/category/categroyname/page/2 but it doesnt display posts for 2 page. I tried to reset my ...
  • 101
0 votes
0 answers
104 views

How do I fix wp-admin error when exporting reusable blocks?

I am having trouble with the export to json feature of the reusable blocks shown below. I am getting the following console errors after pressing the export to json link: Access to fetch at 'https://...
0 votes
0 answers
52 views

How to apply padding to TinyMCE editor?

I am using the following in functions.php... function wpdocs_theme_add_editor_styles() { add_editor_style( array( 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css', ...
0 votes
0 answers
22 views

Get a list of custom post type (property) when clicked on custom taxonomy 1 (rent or sale) from custom taxonomy 2 (city) page

I have 3 different custom post type (property) and taxonomies (city and type). I can retrieve all properties from each city from taxonomy-city.php all properties from each type (sale or rent) from ...
14 votes
1 answer
2k views

Prevent WordPress from automatically installing a new theme each year

Is there a setting for new disabling new yearly themes? Each year my WordPress installation automatically installs a new theme which I then delete. For example, this year the theme Twenty Twenty-Two ...
0 votes
2 answers
402 views

Filter content for get_the_content()

I Need to filter content for posts. If the user is not logged in, then the post content should display "please log in....". If he is logged in, then he can see the post content. I wrote the ...
0 votes
2 answers
845 views

Wordpress REST API - get custom taxonomy category posts

I want to use Wordpress REST API to get the posts that are inside a custom taxonomy created by the theme. The taxonomy is called "my_portfolio" but if I use this I have this response: {&...
  • 101
0 votes
1 answer
29 views

Load specific page when a custom URL is hit

I'm building a plugin which will basically build a knowledge base dynamically, by retrieving categories, articles, etc. from an external API where all documentation is being kept. I've added a few ...
0 votes
1 answer
125 views

Ordering by meta value not working

I have set WP_Query to order by a meta value but it isn't ordering correctly for some reason. entry_key is a year but is stored as text eg: 2022 $term = get_queried_object(); $args = array( '...
0 votes
0 answers
35 views

How to sort posts without featured images in the WordPress Dashboard? thanks

Is there any option to sort posts by without featured images in WordPress dashboard? (function code)
0 votes
0 answers
26 views

Product page attributes dropdown show price

Hi to all i have this code add_filter( 'woocommerce_variation_option_name', 'display_price_in_variation_option_names' ); function display_price_in_variation_option_names( $term_name ) { global $...
0 votes
1 answer
154 views

WP Editor does not Initialize Correctly When Form Elements are Removed from the DOM

I am using js code to add and remove form elements and to initialize the wp_editor on the dynamically added textareas with js. The wp editor is initializing correctly when I am only adding elements ...
  • 215
0 votes
1 answer
107 views

Use a filter for wp_robots to block CPT/feed/

We have a CPT (with base slug templates) that somehow included in every single post's head a link to /templates/post/feed/. I've removed this link to the feed from the head, but want to block robots ...
  • 1,666
0 votes
0 answers
170 views

WooCommerce Lost Password reset goes to 404

When trying to reset password with WooCommerce lost-password it 404's. (ex. domain.com/lost-password/?reset-link-sent=true) I see that this issue has recently been reported but I was wanting to see if ...
0 votes
1 answer
23 views

How to divide Subcategories into pages of parent category wordpress

suppose I have sturucture like this: Justin Bieber > Albums > Justice when I visit on https://example.com/category/justin-bieber/albums/ It is showing all albums of Justin Bieber category. but ...
0 votes
1 answer
357 views

Merge 2 custom post type posts and taxonomy terms and sort ascending

We have a most recent block where we query a taxonomy for a custom post type and posts from two custom post types. This we do using this code Full Code <?php /** * Highlights block * **/ // ...
  • 353
0 votes
2 answers
16 views

Resting a site for a couple of years

I have an old website. I plan on not publishing it for a couple of years. I’ll need it in the future, but I don’t need it now. Therefore, I don’t need to pay for the hosting. I’m a complete beginner. ...
0 votes
0 answers
15 views

List only parent attributes on woocommerce admin atrributes page

I would like to add option on attributes page screen options, to filter out only parent attributes. The main struggle is that I can't even alter the query... I tried actions: parse_query, ...
  • 306
1 vote
1 answer
191 views

Disable featured image

From the description of the plugin "Hide Featured Image": There are instances when one wants to show featured image on single post and hide it on another post. This plugin will allow you to ...
  • 113
0 votes
1 answer
42 views

How to show multi line output from metabox

In a plugin I have made (Snup Widget) I have made a metabox. In the sample here I have made two line with text. When I want to show the text in output in the widget it shows in one line, without break....
  • 21
0 votes
2 answers
27 views

Different background colors for posts with Wordpress

I have a question. Right now I displayed my posts in the next way: Title and under it a short description of that post(everything centered and the post is looking like a card). My client wants each ...
0 votes
1 answer
12 views

WordPress Animation Adjustments

I have a problem with my WordPress animations. https://cyals.com is the website Currently developing. I Use Elementor Page Builder to build my page. a man and a woman load with animations one by one ...
0 votes
0 answers
10 views

Getting more info about the taxonomy?

select * from wp_term_taxonomy join wp_term_relationships relation on relation.term_taxonomy_id = wp_term_taxonomy.term_id group by wp_term_taxonomy.term_id I am ...
  • 1
0 votes
1 answer
19 views

Get other posts sharing the same meta values

I want to get all posts having the same meta values. My Post A has 2 meta values: ID 182 and ID 183 I want to have all post having meta 182 or 183, excepting the current one of course. I have tried: $...
0 votes
0 answers
34 views

`offset` WP_Query argument dont work via `pre_get_posts`

I have some weird problem because pre_get_posts filter completely ignoring offset argument. Here is function from functions.php file: function custom_category_query (WP_Query $the_query) { if ( !...
  • 157
0 votes
0 answers
56 views

Pull data from MySQL and add it to terms

I need to do something above my knowledge base. Here's what I need to do: Pulling data from a specific column, copy it to wp_terms table, make the relationship with the appropriate taxonomy and repeat ...
1 vote
0 answers
285 views

Rest API code to get ID of current user not working: get_current_user_id() gives 0

Background I am trying to write Rest API code to get the ID of the user who triggers the function in question. I found a fantastic answer to this exact question, that was very kindly provided by user ...
  • 11
0 votes
1 answer
198 views

Use get_cat_ID to retreive multiple category IDs

I am trying to use the names of categories stored in user meta (ie users' preferences) to control an on-page query’s parameters. $topicsofinterest = get_user_meta(get_current_user_id(),'...
1 vote
1 answer
1k views

Elementor\Scheme_Typography' not found [closed]

I just update my elementor plugin and suddenly my site goes down its display this error. code line error shows: 224. $element->add_group_control( Group_Control_Typography::get_type(), ...
1 vote
3 answers
319 views

Wordpress Redirect 301 register page

I have a custom register form page, and I want to create a 301 redirect to force people to use this form (and not the original URL of WordPress) I try to do a redirect 301 like this in my .htaccess, ...
  • 157
0 votes
0 answers
95 views

wp_kses_post escaping doesn't appear to work as described?

https://developer.wordpress.org/plugins/security/securing-output/ describes wp_kses_post as: Alternative version of wp_kses() that automatically allows all HTML that is permitted in post content. ...
1 vote
1 answer
32 views

How to link to current post in WordPress?

I'd need to get a permalink for this post (current post) in WordPress. Easy to do in PHP but I'd need to use it in the article itself so no PHP? I'd need a button that links to the current article. ...
  • 11
0 votes
1 answer
64 views

Add media button always inserts media on the next wp_editor instance when created dynamically

This is a really weird issue. I am trying to store data from a form in a plugin settings page and allow users to add html code with wp_editor. The users can dynamically add as many fields as they want ...
  • 215
0 votes
0 answers
60 views

Migrate the posts of a category to another blog as a custom taxonomy

I'm running a multisite WordPress, and I need to so the following migration between 2 blogs: All the posts of a sub-category X that has the parent category programs from the blog A. To the blog B ...
0 votes
0 answers
17 views

How to make transition slider load before home page

I created a transition slider using these instructions on this web site: https://www.greengeeks.com/tutorials/transition-slider-wordpress/ Now I want to take the slider I created and use that as the ...
0 votes
0 answers
28 views

How to display relations via wordpress Rest API

I have a CPT with relations i made and i need the relations to be sent via API Request. i edited it already so i can now see all meta fields in the API request but i cant get the relations to show. ...

15 30 50 per page
1
90 91
92
93 94
2287