Viewing 4 replies - 1 through 4 (of 4 total)
  • I’ve recently been working on how to do this as a widget and almost think I have it ??

    I’ll let you know as soon as I know for sure but I’m having a problem registering it.

    for now, if you want to run it as a widget you can add:

    class OurProgress extends WP_Widget {
    	function OurProgress() {
    		$widget_ops = array('classname' => 'our_progress', 'description' => 'Our Progress' );
    		$this->WP_Widget('our_progress', 'Our Progress', $widget_ops);
    	}
    
    	function widget($args, $instance) {
    		extract($args, EXTR_SKIP);
    		 echo show_ourprogress_graphic();}
    
    	function update($new_instance, $old_instance) {}
    	function form($instance) {}
    }
    register_widget('OurProgress');

    To your functions.php file and it’ll register the plugin as a Widget, if anybody knows how to add this to the plugin file to be automatic, I’d love some help.

    wonderfullyrich, as of version 0.6.7 you can add the following shortcodes to your post:

    [show_ourprogress_graphic] – shows the graphic

    or

    [show_ourprogress] – shows the amount raised

    thanks to Ipstenu (https://www.ads-software.com/support/topic/411307)

    Chistopher,

    Your plug in rocks. Very cool man, thanks for writing it. I was wondering if you could tell me how do you change the “Our Progress” Title?

    Matt

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Our Progress] In Post placement’ is closed to new replies.