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 |
Custom Post Types extend WordPress to support additional content.
0
votes
1
answer
44
views
Single and Archive Pages with Custom Post Type
I have a custom post type
// Set other options for Custom Post Type
$args = array(
'label' => __( 'document', 'ecse' ),
'description' => __( 'Upload Docu …
0
votes
1
answer
45
views
get taxonomies from terms
I have two post types
Documents
News Items
with categories for each post type,
Documents -- PDF, Word, Excel
News Items -- Articles, Releases
BUT they share the same tags.
Documents -- BOSS, EFF, …
0
votes
get taxonomies from terms
After some research I came up with the following
// Get the posts in that category with the required tag
$args = array(
'post_type' => ['documents','news'],
'fields' => 'ids', // Onl …