[Resolved] Custom Template
I think this is a relatively simple question, but I couldn’t dig up any answers about it.
To call on the sidebar, we use the following code;
<?php get_sidebar(); ?>
I would like to create another sidebar type file that I can call upon in a similar fashion to the sidebar, so I don’t have to edit every single template.
So for example I might have a box on my site that I want to show on every page, but instead of editing every single template it’s on, I want to have something like this in the code;
<?php get_smallbox(); ?>
Which then links to a php file in my theme directory that works in the same way the sidebar does.
I assume this is easy to do?
Hopefully that makes sense!
- The topic ‘[Resolved] Custom Template’ is closed to new replies.