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
Custom post registration causing errors
I'd recommend using this resource for getting custom post type code to add to your functions.php: https://generatewp.com/post-type/ If you're finding that you're still running into errors after using …
1
vote
1
answer
197
views
Creating select dropdown with parent-level custom post types
I'm trying to create a dropdown with an option for each top-level parent. I've gotten the query down because when I print the results, I see the posts I'm looking for. My code is also creating the rig …
1
vote
Accepted
Creating select dropdown with parent-level custom post types
Found the answer. I was using the terms nomenclature to call my info. Had to update to:
echo "<option value='." . $post->post_name . "'>" . $post->post_title . "</option>\n";
And now it's working j …