I am working on a WordPress site, it’s an online newspaper site.

The theme I am developing, I want to add custom template functions like get_footer() or get_header(), so that I can save those HTML and PHP codes like the way footer.php stores.

Thanks in advance.

2 Answers
2

You can define your function in the file function.php and use it later in your theme.

Leave a Reply

Your email address will not be published. Required fields are marked *