WordPress.org

Ready to get started?Download WordPress

Forums

Embed Facebook
[PATCH] Too many album photos shown on index pages (1 post)

  1. thelonelyghost
    Member
    Posted 1 year ago #

    The embedded albums I use are huge and I prefer not to have 400 photos show up as one post on my front page. There's no included teaser-setting where one limits the number of photos shown in a teaser, yet I don't want to set a global album limit. To answer this issue, I adjusted a few lines in embed-facebook.php.

    PASTEBIN HERE

    The main changes are to lines 161 and 162 of sohail_do_embed_album() and 220 and 221 of sohail_do_embed_new_album(). You'll see I added the default teaser limit to be 12 photos, limiting results directly in the API call.

    I request that these changes be merged into the latest code base so I may safely update this plugin again. I am more familiar with git than svn so I apologize for not submitting this as a patch file.

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic