• Resolved ayadorim

    (@ayadorim)


    Hi, thanks for this plugin. Very easy to work with and does exactly what I need. The only thing that needs improvement imho is the setting to display an x number of links. As it is now, one can only pick a number between 0 and 49, but I would love it if I could put in a number of my choice.

    Would that be possible for you guys to implement? If not, is there a way I can change the number of links outside the preset 0-49 myself?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mat Lipe

    (@mat-lipe)

    Hi Aydorim,

    You may add the following filter to your active theme’s functions.php to set this to whatever you would like.

    add_filter( 'simple_links_args', 'sl_custom_number' );
    function sl_custom_number( array $args ) {
    	$args['count'] = 4;
    
    	return $args;
    }

    This example would set them to 4.

    Have a great day!

    Mat Lipe

    Thread Starter ayadorim

    (@ayadorim)

    Thanks Mat,

    I have the plugin on my homepage (set to 8 links), but also on an entire page, where I want the number of links set to 75. If I add the filter to functions.php, would both linklists be affected?

    • This reply was modified 6 years, 2 months ago by ayadorim.
    • This reply was modified 6 years, 2 months ago by ayadorim.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Number of links’ is closed to new replies.