Unanswered Questions
2,454 questions with no upvoted or accepted answers
0
votes
0
answers
19
views
Change Query Var from s to q
Hi I have kind of an unusual task that I'm not sure exactly how to approach. I would like to change the query string shown in the url bar to use “?q=” instead of “?s=”
I am using Elementor as well as ...
0
votes
1
answer
23
views
Filtering with Attributes - how to display all non-queried products below query
I addded attributes to filter out products, based on their selection. For instance, I have field named 'tiled' as yes or no. If person ticks 'yes', all the products with the attribute of 'yes' are ...
1
vote
0
answers
21
views
Order by Post Title in WP Query not working
Its wired, i've try to order a custom post type simply by title, and still struggle. Of cause i checkt the dWP dev resources and much more. See always the same solutions, but its not working. Maybe I ...
1
vote
0
answers
40
views
Display posts in correct month order using single date custom field
I have developed a WP Query that displays posts from a custom post type and taxonomy, and orders them by date using a custom field.
The posts have a single Advanced Custom Fields date picker field ...
0
votes
0
answers
36
views
Using a Query Loop Block with Variables (Custom Meta)
Query Loop Block is extraordinarily powerful. I am using FSE. I want to filter data via any number of meta keys and values from the editor. I think it might be good if the editor could allow a method ...
0
votes
1
answer
16
views
wp_insert_term how to insert "<" or ">" in description
so i'm trying to insert an image to wp_insert_term() by
$args = array ( 'description' => '<img src="src">');
wp_insert_term( 'sample', 'taxonomy', $args ) ;
However it is being ...
0
votes
0
answers
26
views
How to delete widget in Wordpress?
I would like to remove the widget that is in the attached screenshot. Recently I managed to write a short code in the additional CSS code in Wordpress. Unfortunately, I changed the theme and this code ...
0
votes
1
answer
22
views
has_term not returning anything
I have a queried list of calendar events that I am trying to check if they have custom taxonomy terms. Within the loop, I have a list of "if" statements for outputting terms from the ...
0
votes
1
answer
21
views
How could i add username field in WooCommerce
I don't know how to add username field in registration page.
There is no settings about this also.
Used to be there is a setting about adding a username field but not now how could i add username ...
0
votes
0
answers
61
views
order meta_value_num not working
I have this code:
<?php $most_popular_args = array(
'post_type' => 'post',
'posts_per_page' => 10,
'orderby' => 'meta_value_num',
'...
0
votes
0
answers
29
views
Help me understand this WP_Query argument
I am trying to understand what arguments are used to order products on a page by using var_dump on $wp_query->query_vars.
I get this arguement that I don't understand how it's working [orderby] =&...
0
votes
0
answers
25
views
Problem making a WPQuery with ACF boolean
Well after hours and hours I find myself finally here, I am building a gutenberg block that is getting a custom post type data and making little cards with it, it works very well if I want to get:
All ...
0
votes
0
answers
15
views
How to add an extra parameter to searches on the admin listing screen for my custom post type
I have defined a custom post type. On the admin listing screen I am filtering this based on a querystring argument. So if my querystring includes 'filter=abc' I show a subset of my custom posts, if ...
0
votes
0
answers
18
views
wp_query returns all posts even with post__in and posts_per_page
I have this code which shouldn't return all the post in DB.
It should return only 3 posts.
$sql = "SELECT wp_posts.ID
FROM wp_posts
WHERE 1=1 AND ((wp_posts.post_type = 'post' ...
0
votes
0
answers
26
views
Wordpress search every time shows no search found even data exists
I am using wordpress. What I am doing is, that when the user enters anything then it will search from the post and will show the result.
I have added static content $_REQUEST['keyword']="team&...