Looping term posts

Hi,
I have a problem showing subcategories for a post. I’m looping some posts by taxonomy and inside the loop I need to show the subcategories for that post. I’m using a custom hook for that. Everything seems to be ok if I var_dump the term list, but when I return it the first three posts are without category. Here’s some photos:

The filter:

The posts with right term object:

The front when I return the terms, you can see the first three terms are empty:

Thank you

Hi @MP_Quadro,

Thanks for reaching out.
I have checked the looper and found that the term is showing for all the items shown in the slider. I have created a Test page and replicated the same content in it and it is also showing the same. I would suggest you check once again and let us know if you are having the same issue.

Thanks

Hi @tristup,
I’m sorry, the issue is in “Materiale informativo” page as I wrote in the notes, not in the home slider. The same hook works in the home slider but not in the “posts” element in “Materiale informativo” page.

Thank you

Hi @MP_Quadro,

I have checked your Looper provider for Term thoroughly and found that a condition for the Chirurgia guidata category has been added and that is why it shows the specific category only. I went ahead and removed the condition and now the terms are showing as expected.

Thanks

Hi @tristup,
Great, thank you very much!!

Hi @MP_Quadro,

Glad that we are able to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.