Skip to main content

Unanswered Questions

2,347 questions with no upvoted or accepted answers
2 votes
0 answers
46 views

Get the Plugin Which Triggered a MySql Query in Wordpress?

I am currently working on this plugin, which is similar to Query Monitor in which i Have displayed all the Details present in the $wpdb object. Now i need to find which plugin is Triggering the Query. ...
2 votes
0 answers
286 views

Wordpress posts per page WP_Query

I'm trying to limit the posts per page using WP_Query. Please see the code below and see why it doesn't work for me: public function widget( $args, $instance ) { // outputs the content of ...
2 votes
0 answers
290 views

Query Posts depends on custom field inside repeater field using acf

i am working on a hotel website and trying to make price search i have custom post type name hotels inside post type i have a repeater field inside repeater i have some rooms with prices i am ...
2 votes
1 answer
88 views

Difficulty with rewrite rules

I can't work out how to combine a rewrite rule and a custom query var. I have created a custom 'edition' template, which calls an external API to populate a table with details of a particular book. ...
2 votes
0 answers
279 views

WP_Query compare with dynamic values

I need get a post only if publish_date is equal to modified date in this case the post is not modified! So i need post NOT MODIFIED!: My query is: $lastupdated_args = array( 'paged' => $...
2 votes
0 answers
1k views

Search query - exact post title match

I have a bunch of posts titled something like this... English Language 2015 English Language 2016 English Language 2017 English Language 2018 And on each one of these posts I have a dropdown select ...
2 votes
0 answers
2k views

WP Rest API max limit include parameter?

I'm using the rest API to get only selected posts though Rest API. I have used include=<ids> parameter. I have send the API request like: http://example.com/wp-json/wp/v2/posts?include=11,12 ...
2 votes
0 answers
147 views

WP_Query mixe post and page attributes

I am working on a website developed by someone else (it's a bit messy). Now I have to make a small widget to let the users search for some of the content that has been created. I need to be able to ...
2 votes
0 answers
110 views

Adding multiple post queries with parent and children to page - Best Way

So I am interested in allowing a custom menu to show "in three places: Menu area, Homepage body, and footer" based on the posttype "page" table list or parent and children entries and not using the WP ...
2 votes
0 answers
758 views

Search user metadata with checkboxes via ajax (almost working)

I have created an ajax search form following some tutorials online, it is working but not exactly how I need it to. Here is where I got the search from. I have US states setup as a user meta field ...
2 votes
0 answers
58 views

Multiple meta queries but arrange by specific meta value order

Im working on a function which gets me lawyers based on criteria. The function works fine. Recently I added a meta key called 'is_endorsed'. The value can be either '1' or '0'. I need to bring ...
2 votes
1 answer
625 views

Trim the search result around the search word

I want to trim my search results page down to 20 words before and 20 words after the highlighted search word. I am getting accurate search results and the search word is highlighting. I have tried ...
2 votes
1 answer
60 views

Hiding posts in a list from specified categories

Question How can I modify this code to not show posts from new categories that we just added. I searched other similar answers on this site [such as: Exclude category on blog list page ] but not ...
2 votes
0 answers
114 views

How to show min 1 post from specific categories/tax WP_Query?

I have custom query that shows specific number of posts from specific categories/tax. Currently I limited the query to show posts from 2 categories , 3 and 4. Issue I have is that the query can be ...
2 votes
1 answer
52 views

Related Tags Concept

On search results pages I would like to show a tag list collected from other posts that are listed for the seach result. // same tag should not be listed twice And for the taxonomy pages again; tags ...

15 30 50 per page
1
3 4
5
6 7
157