[Support request] Adding custom taxonomy in the generate_do_template_part

Home Forums Support [Support request] Adding custom taxonomy in the generate_do_template_part

Home Forums Support Adding custom taxonomy in the generate_do_template_part

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1575914
    tobymiguel

    Hi

    I have a custom taxonomy, I want to display this custom “category” the same way as categories and tags in the archive pages.

    How can I do this?

    When I open the theme template for archive I can see that the following function is used:

    generate_do_template_part( 'archive' );

    #1576894
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This should happen automatically. If no custom taxonomy archive file exists, it will fall back to archive.php and index.php: https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/#custom-taxonomy

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