Archived topic
element hook after archive description not working for custom term in a CPT
7 replies · Started by Pete on June 13, 2019
I'm trying to insert some text under the description of the relevant custom term archive page but it ain't workin'. The taxonomy/term is attached to a custom post type
hook: after_archive_description
location: yep correct tax and term
Thanks
Hi there,
did you include the hooks in your custom template - this is the GP archives template as a guide:
https://github.com/tomusborne/generatepress/blob/master/inc/structure/archives.php
Shouldn't it work in archives.php?
Can you link me to the archive page?
This fixed it...
https://css-tricks.com/snippets/wordpress/make-archives-php-include-custom-post-types/
And changed location rule to: All archives
Did this resolve the issue?
With CPT's you should see in the Display Rules its own specific location e.g Male Category Archives
Yes, thanks :)
Glad to hear that