Skip to main content
added 85 characters in body
Source Link
bravokeyl
  • 3.4k
  • 6
  • 27
  • 33

Custom template should be archive-gallery.php instead of archive-posttype.php

It's archive-$posttype.php where $posttype is the custom post type slug.

WordPress first looks for archive-$posttype.php and if it's not available then chooses archive.php

Update

Same for the custom taxonomies also , the flow is:

taxonomy-$taxonomy-$term.php --> taxonomy-$taxonomy.php -->  taxonomy.php --> archive.php

So for gallery_categories custom taxonomy use taxonomy-gallery_categories.php

Custom template should be archive-gallery.php instead of archive-posttype.php

It's archive-$posttype.php where $posttype is the custom post type slug.

WordPress first looks for archive-$posttype.php and if it's not available then chooses archive.php

Same for the custom taxonomies also , the flow is:

taxonomy-$taxonomy-$term.php --> taxonomy-$taxonomy.php -->  taxonomy.php --> archive.php

Custom template should be archive-gallery.php instead of archive-posttype.php

It's archive-$posttype.php where $posttype is the custom post type slug.

WordPress first looks for archive-$posttype.php and if it's not available then chooses archive.php

Update

Same for the custom taxonomies also , the flow is:

taxonomy-$taxonomy-$term.php --> taxonomy-$taxonomy.php -->  taxonomy.php --> archive.php

So for gallery_categories custom taxonomy use taxonomy-gallery_categories.php

added 151 characters in body
Source Link
bravokeyl
  • 3.4k
  • 6
  • 27
  • 33

Custom template should be archive-gallery.php instead of archive-posttype.php

It's archive-$posttype.php where $posttype is the custom post type slug.

WordPress first looks for archive-$posttype.php and if it's not available then chooses archive.php

Same for the custom taxonomies also , the flow is:

taxonomy-$taxonomy-$term.php --> taxonomy-$taxonomy.php -->  taxonomy.php --> archive.php

Custom template should be archive-gallery.php instead of archive-posttype.php

It's archive-$posttype.php where $posttype is the custom post type slug.

WordPress first looks for archive-$posttype.php and if it's not available then chooses archive.php

Custom template should be archive-gallery.php instead of archive-posttype.php

It's archive-$posttype.php where $posttype is the custom post type slug.

WordPress first looks for archive-$posttype.php and if it's not available then chooses archive.php

Same for the custom taxonomies also , the flow is:

taxonomy-$taxonomy-$term.php --> taxonomy-$taxonomy.php -->  taxonomy.php --> archive.php
added 97 characters in body
Source Link
bravokeyl
  • 3.4k
  • 6
  • 27
  • 33

Custom template should be archive-gallery.php instead of archive-posttype.php

It's archive-$post-type$posttype.php where $post-type$posttype is the custom post type slug.

WordPress first looks for archive-$posttype.php and if it's not available then chooses archive.php

Custom template should be archive-gallery.php instead of archive-posttype.php

It's archive-$post-type.php where $post-type is the custom post type slug.

Custom template should be archive-gallery.php instead of archive-posttype.php

It's archive-$posttype.php where $posttype is the custom post type slug.

WordPress first looks for archive-$posttype.php and if it's not available then chooses archive.php

Source Link
bravokeyl
  • 3.4k
  • 6
  • 27
  • 33
Loading