• Resolved Aimee

    (@greatdanemaniac)


    Hi!
    I seem to be stuck on taxonomies, but I just have a question.

    In order to prevent having several get_the_term_list or the_terms in my templates like so:

    pastebin link

    Is it possible to store the taxonomies in another template and use get_template_part to fetch the ones I need? It looks so cluttered with all the repetitive code.

Viewing 1 replies (of 1 total)
  • Thread Starter Aimee

    (@greatdanemaniac)

    It works!
    You can also store the files in another folder, so it doesn’t get so messy inside the template folder.

Viewing 1 replies (of 1 total)
  • The topic ‘Fetch taxonomies using get_template_part()’ is closed to new replies.