• Resolved Pascal CESCATO

    (@pcescato)


    Hi, is it possible to add templates in a theme, eg. /wp-content/themes/mytheme/ultimate-post/blocks/template/category.php ? I changed some things in the file, but I’ve to modify the file after every update…
    The problem is that the query on line 8 doesn’t show custom posts category, so I’ve to replace the initial code: $cat = get_the_terms($post_id, $attr['taxonomy']); by this one: $cat = get_the_terms($post_id, $attr['queryTax']); in order to display custom post types category

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘templates’ is closed to new replies.