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 |
Since WordPress 2.3, plugin and theme authors have had the ability to create custom taxonomies-- essentially specialized "categories"-- to help organize information.
0
votes
1
answer
458
views
Saving Child Terms on front end not setting parent
I recently had a issue where I was trying to save the child terms on a front end post form. ORIGINAL POST AND CODE
I thought I had it good to go but now I just realize it's not setting the parent te …
1
vote
Accepted
Front End Post Save Child terms
Ok I figured it out using @TomMorton suggestion.
I had to updated my code to this which updates the terms --
$city_for_update = get_term_by('slug', $city_type_value, 'city-type');
$term_array = arr …
4
votes
2
answers
810
views
Front End Post Save Child terms
Im trying to update my front end post form which allows me to save my custom taxonomy parent term, but now I need to save the child term that's selected.
NHB is for Neighborhood which are child terms …
0
votes
2
answers
1k
views
Search Query for Multiple Terms In Same Taxonomy
I have a search that works fine with custom fields, and one term per taxonomy. However I want to select multiple terms from one taxonomy "property-type".
My current query looks like ---
/?s=Search&p …
1
vote
0
answers
894
views
How to make custom taxonomy into drop down select in a custom metabox
I have a custom post type that I am creating custom meta boxes for on the "Add New Post" screen.
I would like to remove the default meta boxes for a given custom taxonomy and place it in a drop down …
0
votes
1
answer
121
views
Returning One custom taxonomy term name
I have a custom taxonomy called cities and right now the only city is las vegas. I am trying to use the code in question to echo "Las Vegas" - for the posts that are associated - on the search results …
0
votes
1
answer
680
views
How to break up php code to avoid echo
I have this php code I am using to list all post (titles) with the taxonomy categories names, and its working fine however I will like to break it up and avoid using echo within the php code so that I …
2
votes
Accepted
Query for posts in 2 taxonomies
Ok I figured it out!
<?php
$custom_terms = get_terms('your_other_category');
$other_custom_terms = get_terms('your_category');
foreach ($custom_terms as $custom_term) {
foreach ($other_custom_terms …
2
votes
2
answers
6k
views
Query for posts in 2 taxonomies
I am currently using the following code to display a list with links to posts in a specific CPT and taxonomy:
<?php
$custom_terms = get_terms('videoscategory');
foreach(array($custom_terms as $cus …
3
votes
Accepted
How to create drop down for child categories of current taxonomy being viewed?
Ok well without any help from here....... I was able to figure out how to change the option and select values of wp_dropdown_categories to display the child terms of the current taxonomy being viewed …
2
votes
1
answer
3k
views
How to create drop down for child categories of current taxonomy being viewed?
I need to know how can I get the child/grandchild terms of the current taxonomy being viewed, and put it into a drop down so that I can add values to the options.
I am currently using this code to di …
0
votes
Accepted
How to add tags (custom taxonomy) to post class css?
Ok I figured out how to add the terms to div's class -
In the code I have first the category, then the post type, then a custom taxonomy tag term assigned to it -
<?php $terms = get_the_terms( $post …
1
vote
1
answer
2k
views
How to add tags (custom taxonomy) to post class css?
I am trying to figure out how to add my custom taxonomy for tags to the post class css when I already have added the custom taxonomy for categories. The code Im currently using to add the category tax …