How to display elements of different post types?

I am not sure I understand your conditions but I think you want something like this: $arg = array ( ‘post_type’ => array(‘post’,’placas’), ‘orderby’ => ‘rand’, ‘tax_query’ => array( ‘relation’ => ‘OR’, array( ‘taxonomy’ => ‘firmas’, ‘field’ => ‘slug’, ‘terms’ => array( ‘LG’ ), ‘operator’ => ‘NOT IN’, ), array( ‘taxonomy’ => ‘category’, ‘field’ => … Read more

How to perform a search inside a specific taxonomy category

try this: Put this code in your search form: <form method=”get” id=”searchform” action=”<?php bloginfo(‘url’); ?>/search”> <?php $args = array( ‘public’ => true, ‘_builtin’ => false ); $output=”objects”; $operator=”and”; $taxonomies = get_taxonomies( $args, $output, $operator ); $my_tax_array = array(‘your_taxonomy_name1′,’your_taxonomy_name2′,); //make array of your taxonomies echo “<select id=’my_select_taxonomy’ name=”my_select_taxonomy”>”; echo “<option value=”0″>—-</option>”; if ( $taxonomies ) { … Read more

Help me add Taxonomy to byline

Use this: get_the_term_list( $id, $taxonomy, $before=””, $sep = ”, $after=”” ); In your case you have to fill in the proper values: $destination = get_the_term_list( $cb_post_id, ‘destination’, ‘ <div class=”cb-destination”>’, ‘, ‘, ‘</div>’ ); Then add $destination to <div class=”cb-byline”>.

Remove taxonomy menu without removing the metabox?

I think the simple answer based on my testing locally is to change the value from true to false in this line of code which is included when you register taxonomy support for custom post types. ‘show_ui’ => false, Here’s the full code i used: add_action( ‘init’, ‘executive_type_taxonomy’ ); function executive_type_taxonomy() { register_taxonomy( ‘portfolio-type’, ‘portfolio’, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)