Title: Posts with individual widgets?
Last modified: August 19, 2016

---

# Posts with individual widgets?

 *  [myrko](https://wordpress.org/support/users/myrko/)
 * (@myrko)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/posts-with-individual-widgets/)
 * Hi, I’m looking for a way to have an individual widget for the sidebar for diffferent
   posts.
 * For instance a post about football should have a video widget about a game and
   a poll widget about football.
    Others posts i.e. about tennis should have different
   widgets and so on.
 * In the end, say the first two widgets in the sidebar should be post-dependend.
 * Now, one could do this with the widget-logic plugin, selecting the post, but 
   then you get a huge sidebar if you want to satisfy 100+ different posts that 
   way.
 * The best way would be a plugin that would add a (or more) individual widgets 
   per ever post, able to be edited from the post screen.
 * Is there anything like this?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/posts-with-individual-widgets/#post-1081318)
 * i suggested to someone else that they ‘roll their own’ widget using html put 
   into a custom field in a post. then use say
 * [http://wordpress.org/extend/plugins/php-code-widget/](http://wordpress.org/extend/plugins/php-code-widget/)
 * to produce a widget that does
 * `echo get_post_meta($post->ID, 'post_widget_1_content', true);`
 * then the widget would contain the HTML that you put in the ‘post_widget_1_content’
   custom field on that post
 *  Thread Starter [myrko](https://wordpress.org/support/users/myrko/)
 * (@myrko)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/posts-with-individual-widgets/#post-1081368)
 * alanft, thank you. That’s a very nice idea.
 * However, I couldn’t get any output. Tried it on two blogs (WP 2.7) just to be
   sure. It seems that the field ist not recognized or the content of it is not 
   found. Have you tried it lately?
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/posts-with-individual-widgets/#post-1081385)
 * you have put something in a custom field of that name, right?
 * perhaps the php needs the $post variable imported via
    `global $post` first?
 * i troubleshoot PHP variables with lines like
    `echo "<pre>"; print_r($post); 
   echo "</pre>"` which shows you a nice representation of the variables in question.(
   in this case $post is usually a very large array.)
 *  Thread Starter [myrko](https://wordpress.org/support/users/myrko/)
 * (@myrko)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/posts-with-individual-widgets/#post-1081393)
 * alanft, thanks. This is true, “global $post” is needed.
 * But it is alsway on ID 1 regardless of the post I am showing. Any further idea?
 *  Thread Starter [myrko](https://wordpress.org/support/users/myrko/)
 * (@myrko)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/posts-with-individual-widgets/#post-1081405)
 * Btw. there was a plugin that seemed to be doing this: Widget Changer: [http://maketecheasier.com/wordpress-plugins/wordpress-widget-changer](http://maketecheasier.com/wordpress-plugins/wordpress-widget-changer)
 * Unfortunately it is not compatible with WP 2.7 and the author is not developing
   it any further.
 * is ther something similar somewhere?
 *  Thread Starter [myrko](https://wordpress.org/support/users/myrko/)
 * (@myrko)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/posts-with-individual-widgets/#post-1081406)
 * Alright, as a final note: The Advanced Custom Field Plugin is the way to go: 
   [http://wordpress.org/extend/plugins/advanced-custom-field-widget/](http://wordpress.org/extend/plugins/advanced-custom-field-widget/)
 * It is very good and solves this problem completely 🙂
 *  [linda-van-wissen](https://wordpress.org/support/users/linda-van-wissen/)
 * (@linda-van-wissen)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/posts-with-individual-widgets/#post-1081498)
 * Hi I have troubles placing individual posts into individual posts on my two sidebars?
   Could some one please help?
    [http://www.lindaenjoysfood.com](http://www.lindaenjoysfood.com)
   thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Posts with individual widgets?’ is closed to new replies.

## Tags

 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 7 replies
 * 3 participants
 * Last reply from: [linda-van-wissen](https://wordpress.org/support/users/linda-van-wissen/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/posts-with-individual-widgets/#post-1081498)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
