Search Results
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 |
"wp-query" ambiguously refers to one of two things. 1) WP_Query is a class native to WordPress which allows users to query the posts database using a number of criteria. 2) $wp_query is the global variable that holds the main query object prepared by WordPress based on a given request.
3
votes
3
answers
4k
views
Make First post different from rest?
Hi i'm using the code below to call post from a certain Category under certain post types, But how do i style it so that i can make the first post different from the rest of the post.
<?php
$queryObj …
0
votes
1
answer
95
views
Using Query In Post Type Archives
I'm using the script below to call post from a certain category in the sidebar. It pulls from all post type on the homepage and on the single post page, but when it comes down to the post type archive …
0
votes
1
answer
261
views
Limit Tags display and ad Drop Down Menu
Does anyone have any idea on how i can limit the number of tags shown in a post and if there is more it's a drop down menu.
Here's an example of what i mean.
Se where it sats "More On" those are …
0
votes
1
answer
173
views
How do i add custom post types to this query?
I'm using the code below to display the latest post from a certain category but i am using Custom Post Types and I don't know how to insert the custom post type function into this code.
I want to ge …
1
vote
2
answers
8k
views
How do I Use Multiple Loops with WP_Query?
Hi I am trying to add post from a certain taxonomy term to a cpt loop. The code below is the code I am using.
<?php // Create empty array to store post ids in
$excludes = array();
…
0
votes
1
answer
982
views
Using WP_Query and Query_post for the loop?
I am using the code below to call post from a certain Taxonomy term. My intentions are to mix that into the normal loop.
I'm am not trying to create two different loops, but one loop that displays th …