Load same sidebar multiple times
-
Is there a way to load the same sidebar multiple times on a page, such as each time the loop iterates?
I’d like to display each posts’ meta data next to that post. Right now I have the info displaying just fine, but it’s hard-coded in at least 4 different places (index, archive, single & category). It would be nice if I could just include a single file, i.e. a sidebar, so that making small changes would be less annoying. Right now when I use get_sidebar(), it only loads for the first post in the loop. I have also tried a general php include, but then none of the wordpress functions like get_the_time() work.
Thanks in advance for the help!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Load same sidebar multiple times’ is closed to new replies.