Archived topic
Elements conditional in cpt taxonomy pages
2 replies · Started by byo on December 7, 2020
hi,
I'm trying to display some text at the bottom of my custom taxonomy page (after the infinite scroll button), and it does not work,
In elements i've created new hook==> add some text ==> select hook position : generate_after_main_content ==> display in my custom taxonomy (tax cars, found it in the list) ==> selected term (term blue cars)
But the element does not want to display.
What i did so far:
1- test with condition : All archives ==> The hook element appear everywhere.
2- Test for cpt cars : the hook element appear on all cpt single posts
3- Test in other positions with the same condition, no hook works on taxonomy pages.
3- did research in the forum without success
I'm working on a local project (xampp) , i did a test on a live website, same result not working.
I manage CPT with the CPT UI plugin.
I have missed something, but after testing, searching in the forum, i could not find what is the problem, i need your help.
Thanks
I had to enable has_archive for the CPT, but it's not clear for me
I think i have to read some codex pages and tutorials :)
Yep that would be it :) Glad you found the issue !