Reply To: Custom fields on results layout && ordering queries

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Custom fields on results layout && ordering queries Reply To: Custom fields on results layout && ordering queries

#16934
jtort
jtort
Participant

Hi Ernest,
The filter on the knowledge base for Displaying the category titles (or taxonomy term titles) in the result title or content worked great for one product attribute.

By interpreting the forearch loop I understand that is capable of handling more than one taxonomy.
Is this correct? If so, I will need a bit of extra help on the synthaxis…

I tried initializing an array like this:

  $taxonomy = []; // 'category', 'post_tag', 'product_tag', 'product_cat' etc..
  $taxonomy[] = 'pa_decade'; 
  $taxonomy[] = 'pa_format'; 
  $taxonomy[] = 'pa_genre'; 
  $taxonomy[] = 'pa_label'; 

… but its not working.

Thank you one more time.
Juan