I would like to have a widget in the sidebar on my posts with content from a custom field. Is that possible?
An example of what I’m hoping to do: When writing a post I often have a couple of links that I would like to appear in the sidebar (in a block called something like “Interesting links”). The links would be specific to that post – and I would like to be able to type them in while writing the post itself (on the same page in the backend).
I know it’s possible to specify a custom sidebar for each post – but I would prefer not having to go through the extra steps of creating custom sidebars for every post.
Do you know if there is a way to do this?
Thanks in advance 🙂
/Janus
Hello Janus,
I understand the idea, it’s a good one actually but unfortunately not so easy to implement. Maybe you can find a plugin to do it something like https://wordpress.org/plugins/advanced-custom-field-widget/screenshots/ and maybe an add-on https://wordpress.org/plugins/advanced-custom-fields-widget-area-field/
We haven’t tested these plugins but maybe they will get you where you need. The alternative method, the coding one, is much more complicated. You will have to create your very own custom widget to pull information from a custom field. It will be no easy task and it will require coding knowledge and quite a bit of time. To create a custom widget http://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget/, you have to create a custom plugin: http://www.wpbeginner.com/beginners-guide/what-why-and-how-tos-of-creating-a-site-specific-wordpress-plugin/ and then create your code to pull info out of the custom field.
I hope this helps
Thank you!
Hi Bogdan,
Thank you very much!
I’ll try the plugins you mentioned first. If that doesn’t work I’ll probably try the more complicated method. Thank you for giving some good pointers of where to start.
One last thing: What’s the best way of making a feature request to the development team?