i need to show featured post on custom taxonomy page

Syntax for your meta query seems to be wrong. Just as tax query, it should be array with array for each meta condition. Also use $query for your query functions: $args = array( ‘posts_per_page’ => 3, ‘post_type’ => ‘post’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘city’, ‘field’ => ‘term_id’, ), ), ‘meta_query’ => array( array( … Read more

Select Custom Taxonomy from Theme Options

Since you are likely developing this and you don’t have any posts associated with the season taxonomy, you will not get any terms returned with get_terms(‘season’);’ unless you specify the parameterhide_emptyto be0`. I would change the code thusly: /** Seasons */ $args = array( ‘hide_empty’ => ‘0’ ); $season_terms = get_terms(‘season’, $args); $season_tax = array(); … Read more

get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error

This is a PHP syntax error. You’re attempting to pass an array to get_terms() but haven’t used array() or [] to make it an array. This means that => is invalid here. The code should be: public function pggggo_list_of_terms() { $terms = get_terms( [ ‘taxonomy’ => [ ‘vehicle_safely_features’, ‘vehicle_exterior_features’, ‘vehicle_interior_features’, ‘vehicle_extras’, ], ] ); return … Read more

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