Ethan Ferdosi
asked 9 years ago

Hi,

I am trying to customize the tags archive page to display all questions posted on that tag. i also set a slug called ‘topic’ so now my tags are displayed as: {siteurl}/questions/topic/custom-topic

But i realized that it is not using the normal wp template hierarchy and it is picking the ‘page.php’ from the parent themem folder, not the child.

could you tell me how i can create custom templates for my tags and copy them into the child theme?

Thanks
Ethan

1 Answers
Allen
answered 9 years ago

@Ethan Ferdosi : hi , you can create your own custom page, and then go to : dw-question-answer/inc/template-functions.php, and then go to line : 785, set the ‘page.php’ to the path to your template file. ( it work for both categories and tags ), you can use condition there to set it using just for the tag or both. It’s one way i can think of to resolve this problem , if you still face it , please feedback to me . glad

Powered by DW Question & Answer Pro