get_term_by with a variable

you can look at line 874 in /wp-includes/taxonomy.php for the function itself. the value has stripslashes applied and then it’s used in a prepared statement, so I’d say it’s safe. but there’s nothing stopping you from checking the value yourself first if you know what parameters it will always fall within, like ctype_alnum or something. … Read more

Taxonomy Dropdown Question

when using show_option_all with wp_dropdown_categories it gets the value of ‘0’ so you can just check using your $_GET[‘property_types’] if it is ‘0’ you know i’ll need to show results of “all ID 14, 15, 16”

Custom post type and taxonomy page templates

Looks like you got the hang of it. Taxonomy template is an archive of posts that share a term just like categories or tags, so if by looped view you mean archive then yes you are correct. you can create just one template that will include all taxonomies and use the get_template_part function to include … Read more

sidebar troubles, taxonomy trouble

Categories are a hierarchical taxonomy. Tags are simply a non-hierarchical taxonomy. If you don’t have a use for categories otherwise, then use them for genre. If you have a need for them, then create more taxonomies as needed for additional classification/categorization, etc.. get_sidebar(‘mysidebar’); is for calling a sidebar template file, in your case sidebar-mysidebar.php. dynamic_sidebar(‘name’); … Read more

How to relate to 2 taxonomy with category

http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters I recently dealt with a similar, although much more complex problem where I had to guess taxonomy names that had no naming convention. I built a whole bunch of abstracted functionality to automatically build my queries for me – your need is simpler though, you might as well do these as the link above … Read more

Related Taxonomy Doesnt Show any Posts

I’m not sure what the rest of your code looks like, but you are mixing up your $query variable and you are not sending your $query to the new instance of WP_Query. Also, there is no need to send an array to the “terms” parameter if you are only using one term. Try this. <?php … Read more