Using WordPress 3.8.1 with ‘Twenty Fourteen’ theme I’d like to arrange my post in such a way that it’s main contents go to main (center) column while galleries, attached files and links pertaining to this post go to content sidebar to the right. How can I do that? Do I need some specific plugins?
Right now I can place in the content sidebar only site-specific widgets. I think that sidebar named ‘content’ and visually placed and styled like post should display post-specific widgets but I’m unable to force it to that.
You can install a plugin like widget visibility or Widget Logic which enables you to add conditional tags to specify which posts, pages etc your widgets display.
Otherwise, you would need to add the conditional tags to your themes native sidebar widget area’s to control which posts, pages etc they display.
Example:
If you only wanted your widget to display on single posts, you would add the conditional tag:
or
To exclude widgets from displaying on single posts, you would use the same conditional tag like this:
See this code example if you want to code your own custom sidebar widgets.
You can register the widget in your child themes functions file then hook it in directly in any template file or by using a custom functions in your child themes functions file.
Registers a new widget
Add to template file like single.php
Source http://codex.wordpress.org/Function_Reference/dynamic_sidebar
While the logic can get complicated, you can control the display of widgets to a significant degree using the
widget_display_callback
filter.For example, this will allow only the Core Text widget to be displayed in the sidebar with ID “sidebar-1” :