Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Category description not show › Reply To: Category description not show
June 4, 2019 at 9:04 am
#23019
Keymaster
Hi,
The ID of those items is set to -10 on purpose, otherwise wordpress would parse it as a Post. It might be however possible possible to get the original term ID via the Ajax Search Pro theme API functions.
In your case, to get the ID, you can use this call within the posts loop:
$id = get_asp_result_field('id');
It might be also possible to get the short description directly, like so:
$term = get_term( $id );
echo $term->description;
That may do the trick!