WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
[resolved] How to change the number of recommendations (8 posts)

  1. IT Expert
    Member
    Posted 2 years ago #

    Hello!

    The default number for recommendations bar is 2. I would like to change that to 3 or 4 if I want. What file do I have to modify?

    Thank you,

    Costi B.

    http://www.fotoshooting.ro/

    http://wordpress.org/extend/plugins/facebook/

  2. IT Expert
    Member
    Posted 2 years ago #

    C'mon..nothing? :)

  3. IT Expert
    Member
    Posted 2 years ago #

    Really?

  4. IT Expert
    Member
    Posted 2 years ago #

    Thank you for the update!

  5. Niall Kennedy
    Member
    Plugin Author

    Posted 2 years ago #

    The Recommendations Bar social plugin supports overriding the default number of recommendations of 2 to 1, 3, 4, or 5. You may now set this value in the Recommendations Bar settings area of your WordPress administrative interface.

  6. IT Expert
    Member
    Posted 2 years ago #

    Hello Niall!

    Yes I saw that but unfortunately there is something wrong with the plugin. I tried 1, 3, 4, and 5 but after the save action it's returning to the default value, 2. I think there is something wrong in the code or maybe it's something wrong with my wordpress, which I don't believe but...Do you have any ideea why the plugin it's returning the default value?

    // enforce minimum. reset to default
    		if ( ! isset( $existing_value ) || $existing_value < 1 || $existing_value > 5 )
    			$existing_value = 2;
    
    		echo '<input type="number" name="' . self::OPTION_NAME . '[' . $key . ']" id="facebook-recommendations-bar-num-recommendations" size="1" maxlength="1" min="1" max="5" step="1" value="' . $existing_value . '" /> ' . _n( 'maximum recommendation', 'maximum recommendations', $existing_value, 'facebook' );
    	}
  7. mdogano
    Member
    Posted 2 years ago #

    same as costib. the number 2 resist change. :)

  8. Niall Kennedy
    Member
    Plugin Author

    Posted 2 years ago #

    yes, there was an error in the plugin. it will be fixed in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic