I’m trying to add a custom field to display at the top of all default right sidebars. I created the custom field in a random post.
There are probably a few ways to do this. With the slightly confusing deep levels of nested actions and relationships in different files, I have gone with adding a function in the functions file, and using add_action, based off the Primary Framework Action Hook location, which in this case seems to be: themeblvd_fixed_sidebar_before.
In my functions file it looks like this
The styling shows up, but it’s not returning the value associated with the variable (custom field).
I would prefer to know where to place this code in the exact sidebar location itself, but at least this mostly works too.
Pardon me if this is a general WordPress question.
Thank you very much…
- You must be logged in to reply to this topic.