[Resolved] element hook after archive description not working for custom term in a CPT

Home Forums Support [Resolved] element hook after archive description not working for custom term in a CPT

Home Forums Support element hook after archive description not working for custom term in a CPT

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #928100
    Pete

    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

    #928110
    David
    Staff
    Customer Support

    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

    #928116
    Pete

    Shouldn’t it work in archives.php?

    #928125
    David
    Staff
    Customer Support

    Can you link me to the archive page?

    #928127
    Pete

    This fixed it…
    https://css-tricks.com/snippets/wordpress/make-archives-php-include-custom-post-types/

    And changed location rule to: All archives

    #928134
    David
    Staff
    Customer Support

    Did this resolve the issue?

    With CPT’s you should see in the Display Rules its own specific location e.g Male Category Archives

    #928136
    Pete

    Yes, thanks 🙂

    #928152
    David
    Staff
    Customer Support

    Glad to hear that

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.