correct place in theme for wp_meta()
-
I’m making a theme and confused about where to put the
wp_meta()
tag. I have a read a couple places which say ‘right before closing tag of the sidebar <aside>’. Plugin API hooks section of the handbook says it should be included in every theme, typically in the menu or sidebar and to look at the core themes for examples, but I can’t find it in any of them dating back to twentysixteen. Also the function reference page says it gets called by default, so I’m not sure if that means you don’t need to explicitly include it at all.By default, wp meta() is called immediately after wp_loginout() by sidebar.php and the Meta widget, allowing functions to add new list items to the widget.
Although, I can’t get a function hooked to wp_meta to echo anything unless I include the tag manually or the Meta widget is active. Is it the case you don’t need the tag as long as users have the ability to add the meta widget?
Thanks for your help!
- The topic ‘correct place in theme for wp_meta()’ is closed to new replies.