Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Create 1 common page template for different terms of custom...

Discussion in 'Misc WordPress Requests' started by Dat Hoang, Mar 18, 2018.

  1. Dat Hoang

    Guest

    Reply To: Create 1 common page template for different terms of custom taxonomy in Wordp, by Dat Hoang

    Hi,

    As I understand, you have a custom taxonomy, like “playlist”.
    And now you want to have a template for displaying all terms belonging this taxonomy “playlist”.

    Based on this https://developer.wordpress.org/themes/basics/template-hierarchy/ and https://developer.wordpress.org/files/2014/10/wp-hierarchy.png, this is what you need:

    * file name: taxonomy-playlist.php
    * To get the term value for the current page, you can use this function https://codex.wordpress.org/Function_Reference/single_term_title

    Reply To: Create 1 common page template for different terms of custom taxonomy in Wordp
     
    #1

Share This Page

Monarch Social Sharing Plugin