Support » Plugins » Know a “One widget per post” plugin?

  • I’m looking for a plugin that can give me one widget for every post.
    Eg. I like to show a map with a brief text in the sidebar – different for each post.
    Is there such a plugin?
    PS Widget changer did the job, but regretably isn’t developed beyond WP26x

Viewing 6 replies - 1 through 6 (of 6 total)
  • You could ‘roll your own’ using a standard PHP code widget and

    echo get_post_meta($post->ID, 'per_post_widget_content', true);

    for example, to display the text in the post’s ‘per_post_widget_content’ custom field.

    Thanks a lot, Alan!
    I guess I can find out how to do the php part (just making your line part of an expression and insert it in my sidebar.php – right?)
    – But which “standard php code widget” would you suggest? Daiko’s text widget + Widget logic? Or something even easier?
    Thanks a lot – I really appreciate this help.

    Thanks – this might be a solution
    BUT, since I have a site with (for now) about 200 posts, each of them with one unique widget, I would get a huge stack of widgets.

    Widget changer gives an extra html/writing field under the post’s write field + one widget. Whatever you insert in that field appears eg at the top of your sidebar (if that is where you’ve placed the widget).
    For instance here the map is inserted in that extra field. Another post has another map – though both of them are placed there using one widget in the widget panel.

    Other ideas?
    Thanks a lot for trying

    my suggestion is just one widget too. one PHP code widget that displays a post’s ‘per_post_widget_content’ custom field. you specify the text to appear in a custom field for each post.

    OK – I think I get the point! :o)
    If you could just help me with the exact code I should insert in that widget, it would be of GREAT help!
    (I don’t know much php, but I believe the code you gave initially is missing something (?) – like a start with <?php… – right? Or is it just
    <?php echo get_post_meta($post->ID, 'per_post_widget_content', true); ?>)
    Thanks a lot

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Know a “One widget per post” plugin?’ is closed to new replies.