0
I started a project recently and I can’t "link" my posts with my taxonomies, my code:
$argsProjeto = array(
'post_type' => 'projetos',
'orderby' => 'post_date',
'post_status' => 'publish',
'order' => 'ASC',
'hide_empty' => false,
'posts_per_page' => 6,
);
$projetos = get_posts($argsProjeto);
$argss = array(
'orderby' => '
'order' => 'ASC',
'taxonomy' => 'tax_projetos',
);
$tax = get_terms($projetos[0]->ID, $argss);
var_dump($tax);
As a return, the var_dump
showcase:
object(WP_Error)[5371] public 'errors' => array (size=1) 'invalid_taxonomy' => array (size=1) 0 => string 'Taxonomia inválida.' (length=20) public 'error_data' => array (size=0) empty
still ta returning me empty, can be a hook error?
– Yan Ricardo
test like this
– Glaydson Rodrigues