It’s not really possible to give feedback on your specific configuration unless you provide details on your configuration. Please share the JSON output from Pods Admin > Components > Import / Export Packages, for example, as well as what you’re passing to get_terms().
Hi @makhansingh89
JSON looks ok (tax is public and query is enabled etc.)
Since you mention get_terms, can you also share the PHP code you use?
Did you check the documentation? https://developer.ww.wp.xz.cn/reference/functions/get_terms/
Cheers, Jory
if($_GET['text']) {
$cat_args = array(
'orderby' => 'term_id',
'order' => 'ASC',
'hide_empty' => true,
);
$terms = get_terms(array('taxonomy' => 'am_type','hide_empty' => false, 'parent' => 0 ));
print_r($terms);
$args = array(
'public' => true,
'_builtin' => false
);
$output = 'names'; // or objects
$operator = 'or'; // 'and' or 'or'
$taxonomies = get_taxonomies( $args, $output, $operator );
print_r($taxonomies);
}
https://cityoftrentontx.problemsolversites.lightningbasehosted.com/?text=wew
On top of the page it shows invalid results.
Hi @makhansingh89
I see the error is rendered even above the HTML tag. At what point is this code run? It should not run before the init is fired because then the post types and taxonomies are not registered yet.
See: https://codex.ww.wp.xz.cn/Plugin_API/Action_Reference
Cheers, Jory