Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 134922

A generic term referring to the process of retrieving information from a database.

0 votes
1 answer
501 views

URL to Post Archive of Custom Query

I have a custom query for a CPT, from which I can obtain an array of postid's. … I want a url to the archive of the CPT, which has the query result (i.e. the posts of the postid's in the array are shown). This url needs to go in a button as href value. …
aswinshenoy's user avatar
0 votes

URL to Post Archive of Custom Query

is_admin() && is_post_type_archive('CPT_NAME') && $query->is_main_query()) { $post_ids = $_GET['post_ids']; if(! … $_GET['parameter'] to get the query string PHP's explode() to convert comma-seperated query string to an array of post ids Wordpress WP_query function $query->set('parameter',$value) to set the wp query
aswinshenoy's user avatar