Docs    Facebook    Customizations

Reversing the order of items in a photo, video, or album feed

Update for album feeds: Since Custom Facebook Feed 4.8.0, album feeds support native ordering via Settings > Advanced > Album order. See the Displaying Facebook Albums doc for the new “Album order” setting. The JavaScript snippet below is kept here as a fallback for photo and video feeds, which still rely on this approach for reverse ordering.

Use this snippet to reverse the order of visible items in a photos, videos, or albums feed. Add the following JavaScript to your site. This can be done manually using a custom JavaScript plugin. For further information see our documentation here.
var postsWrap = $('.cff-posts-wrap');
var items = postsWrap.children('.cff-album-item');
postsWrap.append(items.get().reverse());
It’s important to note that this will not work with the “Load More” button. You’d need to disable that button.
support

Couldn’t find your answer in the docs?

Contact Support

Was this article helpful?