WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. costib
    Member
    Posted 1 year 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. costib
    Member
    Posted 1 year ago #

    C'mon..nothing? :)

  3. costib
    Member
    Posted 1 year ago #

    Really?

  4. costib
    Member
    Posted 1 year ago #

    Thank you for the update!

  5. Niall Kennedy
    Member
    Plugin Author

    Posted 1 year 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. costib
    Member
    Posted 1 year 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 1 year ago #

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

  8. Niall Kennedy
    Member
    Plugin Author

    Posted 1 year 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