Docs    Facebook    Documentation

Custom Facebook Feed WordPress Plugin Shortcode Reference

A legacy reference for shortcode options used before version 4.0. For newer versions, customize the feed in the plugin instead.

Would you like to change how a Facebook feed looks on one page, such as its width or padding, without changing it everywhere else?

Since version 4.0, you build each feed in the feed builder. The shortcode only names the feed to show, for example [custom-facebook-feed feed=1]. You can still add options to that shortcode to change how one feed looks or behaves on a single page.

This reference lists every option, what values it takes and an example.

Before you get started, make sure the Facebook Feed plugin is installed and activated on your site.

If you need to know why an option has no effect, start with Which Options Apply to Your Feed below.

Here is what we will cover.

Using Shortcode Options

A shortcode option is a setting you type inside the shortcode. Every option follows the same pattern, name=value, and you add it after the feed number, separated by a space.

  1. First, open the page or post where the feed appears. Find the Shortcode block or the text where you pasted the shortcode.
  2. Next, click just before the closing bracket ]. Type a space followed by the option and its value. For example, [custom-facebook-feed feed=1 class="homepage-feed"] adds a CSS class to the feed.
  3. Finally, click Update and view the page to see the change.

A few rules keep the shortcode working.

  • Separate options with a space and leave no spaces around the equals sign.
  • Wrap values that contain spaces in straight double quotes, for example headertext="Latest news".
  • Write color values as a hex code without the #, for example textcolor=333333.
  • To add more than one option, list them one after another, for example [custom-facebook-feed feed=1 offset=2 class="homepage-feed"].

If an option you added has no effect, see Shortcode options aren’t working.

Which Options Apply to Your Feed

Which options a shortcode reads depends on how the feed was made.

  • Feeds with a feed number (feed=1) are feed builder feeds. They take their settings from the feed builder. The only options the shortcode can override are width, widthresp, mediaposition, masonryjs, colsjs, textformat, textweight, descweight, eventtitleweight, eventdateweight, eventdetailsweight, dateweight, linkweight, headertextweight, posttags, linkhashtags, offset, eventoffset, commentsnum, restrictedpage, hidesupporterposts, privategroup, fulllinkimages, linkimagesize, postimagesize, videoheight, videoaction, videoplayer, class, padding, cachetime, cacheunit, ajax and cff_enqueue_with_shortcode. The carousel options also work when the Carousel extension is active. To change anything else, change the setting in the feed builder.
  • Legacy feeds are feeds from before version 4.0 that still run on a shortcode with no feed number. In a legacy feed, a shortcode option overrides the matching saved setting. Learn more in Facebook legacy feeds.

New installs never have legacy feeds. A site that upgraded from version 3 and had more than one legacy feed keeps them. If the upgrade found only one legacy feed, it converted that feed to a feed builder feed. A shortcode with no feed number then shows it as feed 1.

Options for an extension need that extension active. They are grouped under Extension Options.

Source, Post Count and Caching

These options set which Page to show, how many posts to load and how long the feed is cached.

OptionValuesWhat it doesExample
idA Page ID or Page nameThe Page to show posts from. Use your Page ID or the name in your Page URL.id=your-page-name
ownaccesstokentrue, falseTells the feed to use the token in accesstoken. You don’t need to add it, because the plugin turns it on whenever the shortcode has accesstoken.ownaccesstoken=true
accesstokenYour Access TokenA specific access token to use in one feed. A connected source for the same Page always takes priority.accesstoken='YOUR_ACCESS_TOKEN'
accountAccount IDAn account ID to use in place of the Page ID and access token in the plugin settings. It overrides id.account=12345
numAny numberThe number of posts you wish to displaynum=5
limitAny numberThe number of posts retrieved from the Facebook APIlimit=5
offsetAny number less than the number of posts you’re displayingThe number of posts to offset the feed by. For example, offset=2 would start the feed at the third post.offset=1
showpostsbyme, others, onlyothersWhether to show posts by only the page owner, anyone who posts on your page, or only others who post on your page.showpostsby=others
cachetimeA whole number, 1 or moreHow long to keep the feed cached before checking Facebook again. Use it with cacheunit. A value below 1 becomes 1.cachetime=5
cacheunitminutes, hours, daysThe unit for cachetime. The default is minutes.cacheunit=hours
localeA locale code, such as en_US or es_ESThe language that the Like box is localized tolocale=es_ES
ajaxtrue, falseWhether or not the Custom Facebook Feed content is being loaded in via Ajax by your WordPress themeajax=true
nummobileA numberThe number of posts to show on mobile devices.nummobile=3
cachetypepage, backgroundWhether the feed cache updates when the page loads or in the background. Legacy feeds only.cachetype=page

General Styling and Columns

These options change the size, spacing and background of the feed. The column options do not apply to grid layouts, such as photo, album and video feeds. Use photocols, albumcols and videocols there.

OptionValuesWhat it doesExample
widthA number and a unit, such as 10pxThe width of the feed container (including the unit)width=500px
width=50%
heightA number and a unit, such as 10pxThe height of the feed container (including the unit)height=500px
paddingA number and a unit, such as 10pxThe padding applied to the feed container (including the unit)padding=20px
padding=5%
bgcolorA hex color code, without the #The background color of the feed (not including the #)bgcolor=FF0000
classAny text string (may include dashes or underscores, but no spaces)The CSS class to be added to the feed’s containerclass=myfeed
cols1-6The number of columns for the feed on desktop.cols=3
colsmobile1 to 3The number of columns on mobile devices.colsmobile=2
masonrytrue, falseWhether to show the feed in a masonry layout. Legacy feeds only.masonry=true
masonrycolsA numberThe number of masonry columns on desktop, used only when cols is not set.masonrycols=3
masonrycolsmobileA numberThe number of masonry columns on mobile devices, used only when colsmobile is not set.masonrycolsmobile=1

Post Types

The type option chooses which kinds of posts to show. When the feed shows only one type, the options in the matching section below apply.

OptionValuesWhat it doesExample
typeevents, links, photos, videos, status or statuses, albumsThe types of posts you want to displaytype=events,status,links

Events

These options apply only when the feed shows the events post type alone.

OptionValuesWhat it doesExample
eventsourceeventspage, timelineWhether to display your events from your Facebook Events page or from the timeline (only applies when only displaying the events post type)eventsource=eventspage
pasteventstrue, falseWhether to display past events from your Facebook page (only applies when only displaying the events post type). After you add this option, you may need to clear the plugin cache so that the plugin checks Facebook for the past events. The Clear All Caches button is in Facebook Feed » Settings » Feeds.pastevents=true
eventoffsetAny numberThe number of hours to keep showing an event after its start time has passed. This only applies when only displaying the events post type.eventoffset=24
eventimagefull, croppedWhether to display full sized event images or square cropped versions. This only applies when showing events only from your Events page (not from your timeline). To adjust the size of the image use the layout option in the Post Layout section below.eventimage=cropped
noeventstextAny textThe text to display when there are no upcoming events to displaynoeventstext="More events coming soon"
interestedtextAny textThe text to display to show how many people are interested in an eventinterestedtext="interested"
goingtextAny textThe text to display to show how many people are going to an eventgoingtext="going"
buyticketstextAny textThe text to display for the “Buy Tickets” linkbuyticketstext="Tickets"

Albums

These options apply only when the feed shows the albums post type alone.

OptionValuesWhat it doesExample
albumsourcephotospage, timelineWhether to display your albums from your Facebook Photos page or from the timeline (only applies when only displaying the albums post type)albumsource=photospage
showalbumtitletrue, falseWhether to display the album title when displaying only the Albums post typeshowalbumtitle=true
showalbumnumtrue, falseWhether to display the album number when displaying only the Albums post typeshowalbumnum=true
albumcols1-8The number of columns to display albums in when displaying only the Albums post typealbumcols=3

Photos

These options apply only when the feed shows the photos post type alone.

OptionValuesWhat it doesExample
photosourcephotospage, timelineWhether to display your photos from your Facebook Photos page or from the timeline (only applies when only displaying the photos post type)photosource=photospage
photocols1-8The number of columns to display photos in when displaying only the Photos post typephotocols=3

Videos

These options apply only when the feed shows the videos post type alone.

OptionValuesWhat it doesExample
videosourcevideospage, timelineWhether to display your videos from your Facebook Videos page or album or from the timeline (only applies when only displaying the videos post type)videosource=videospage
showvideonametrue, falseWhether to display the video name when displaying only the Videos post typeshowvideoname=true
showvideodesctrue, falseWhether to display the video description when displaying only the Videos post typeshowvideodesc=true
videocols1-8The number of columns to display videos in when displaying only the Videos post typevideocols=3
playlistPlaylist ID (numeric)The ID of the playlist you want to display. This can be found in the video URL after the “vl.”, for example /videos/vl.1234567890/playlist=1234567890

Post Layout and Style

These options control how each post is laid out, which parts it shows and how it is styled.

OptionValuesWhat it doesExample
layoutthumb, half, fullThe post layout you want to uselayout=thumb
mediapositionabove, belowWhether to display the photo or video above or below the post text. Only applies to the Full-width layout.mediaposition='above'
enablenarrowtrue, falseIn a narrow column or on a mobile device, the plugin switches to the Full-width layout, which suits narrow sizes. Set this to false to keep your chosen layout.enablenarrow=false
oneimagetrue, falseIf a Facebook post contains more than one photo, enabling this setting shows only the first photo.oneimage=true
includeA comma-separated listThe parts of the post to include, separated by commas, when they apply. The values are author, text, desc, sharedlinks, date, media, medialink, eventtitle, eventdetails, social, link and likebox.include=text,date,likebox
excludeA comma-separated listThe parts of the post to leave out, separated by commas, when they apply. Use the same values as include.exclude=social,link,likebox
showauthortrue, falseWhether to show or hide the name and avatar of the post authorshowauthor=false
poststyleregular, boxedA regular post style or a “boxed” style with a background color, a box shadow or both appliedpoststyle='boxed'
boxshadowtrue, falseWhether to apply a subtle box shadow to the “boxed” post styleboxshadow='true'
postbgcolorA hex color code, without the #The background color of each individual Facebook post (not including the #)postbgcolor=ff0000
postcornersAny number (not including a unit)The radius of the rounded corners on a post (not including px)postcorners=10
sepcolorA hex color code, without the #The color of the line separating the postssepcolor=CFCFCF
sepsizeA number without a unit, such as 14The thickness in pixels of the line separating the postssepsize=3
textlengthAny numberThe maximum character length of the post texttextlength=200
desclengthAny numberThe maximum character length of the descriptiondesclength=150
mediasideleft, rightThe side of the post the photo or video sits on in the Thumbnail and Half-width layouts. The default is left.mediaside=right

Load More Button, Lightbox and Filters

These options control the Load More button, the popup lightbox and which posts are shown by text.

OptionValuesWhat it doesExample
loadmoretrue, falseWhether to show the Load More button at the bottom of the feedloadmore=false
buttoncolorA hex color code, without the #The background color of the Load More button (not including the #)buttoncolor=ff0000
buttonhovercolorA hex color code, without the #The background color of the Load More button when hovered upon (not including the #)buttonhovercolor=333333
buttontextcolorA hex color code, without the #The text color of the Load More button (not including the #)buttontextcolor=CCCCCC
buttontextAny textThe text you wish to use in place of the ‘Load More’ textbuttontext='More..'
disablelightboxtrue, falseWhether to disable the popup photo or video lightboxdisablelightbox=true
lightboxcommentstrue, falseWhether to display post comments in the popup lightbox (works for timeline posts only)lightboxcomments=true
filterany text string or hashtagOnly show posts containing the defined string. Separate multiple strings with commas. A post that contains any one of them is shown.filter="website"
filter="#wordpress,#events"
exfilterany text string or hashtagDo not show posts containing the defined string. Separate multiple strings with commas. A post that contains any one of them is hidden.exfilter="website"
exfilter="#wordpress,#events"

Feed Header

These options control the header at the top of the feed.

OptionValuesWhat it doesExample
showheadertrue, falseWhether to display a customizable header at the top of the feedshowheader=true
headeroutsidetrue, falseWhether to display the feed header inside or outside of the feed’s containerheaderoutside=true
headertextAny textThe text to display in the headerheadertext='Facebook Feed'
headerbgA hex color code, without the #The background color of the feed header (not including the #)headerbg=DDD
headerpaddingA number and a unit, such as 10pxThe padding applied to the feed header (including the unit)headerpadding=20px
headertextsizeA number without a unit, such as 14The font size of the header text in pixels (not including a unit)headertextsize=28
headertextweightinherit, normal, boldThe text weight of the header textheadertextweight=bold
headertextcolorA hex color code, without the #The color of the header text (not including the #)headertextcolor=333
headericonfacebook-square, facebook, calendar, calendar-o, picture-o, users, thumbs-o-up, thumbs-up, comment-o, comment, ticket, list-alt, file, file-o, file-text, file-text-o, youtube-play, youtube, vimeo-squareThe icon to use in the feed headerheadericon=facebook
headericoncolorA hex color code, without the #The color of the icon in the feed header (not including the #)headericoncolor=FFF
headericonsizeA number without a unit, such as 14The size of the header icon in pixels (not including a unit)headericonsize=28
headertypevisual, textThe style of the feed header. Legacy feeds only.headertype=visual
headercovertrue, falseWhether to show the cover photo in a visual header.headercover=true
headernametrue, falseWhether to show the Page name in a visual header.headername=true
headerbiotrue, falseWhether to show the Page bio in a visual header.headerbio=true
headercoverheightA numberThe height of the cover photo in a visual header.headercoverheight=300

Post Text, Descriptions and Shared Links

These options control the author name, the post text, descriptions and the box around shared links.

OptionValuesWhat it doesExample
authorsizeA number without a unit, such as 14The font size of the author text in pixels (not including a unit)authorsize=20
authorcolorA hex color code, without the #The color of the author text (not including the #)authorcolor=ff0000
textformatAny HTML formatThe HTML tag to wrap the post text intextformat=p
textformat=h4
textsizeA number without a unit, such as 14The font size of the post text in pixels (not including a unit)textsize=12
textweightinherit, normal, boldThe weight of the post texttextweight=bold
textcolorA hex color code, without the #The color of the post text (not including the #)textcolor=333
textlinkcolorA hex color code, without the #The color of the links in the post text (not including the #)textlinkcolor=E69100
textlinktrue, falseWhether to link the post text to the post on Facebooktextlink=true
posttagstrue, falseWhether to link @tags in your postsposttags=false
linkhashtagstrue, falseWhether to link hashtags in your postslinkhashtags=false
descsizeA number without a unit, such as 14The font size of the descriptions in pixels (not including a unit)descsize=11
descweightinherit, normal, boldThe weight of the descriptiondescweight=bold
desccolorA hex color code, without the #The color of the description (not including the #)desccolor=9F9F9F
linktitleformatAny HTML formatThe HTML tag to wrap shared link titles inlinktitleformat='h3'
linktitlesizeA number without a unit, such as 14The font size of the link title in pixels (not including a unit)linktitlesize='18'
linktitlecolorA hex color code, without the #The color of the link title text (not including the #)linktitlecolor='ff0000'
linkurlcolorA hex color code, without the #The color of the link URL (source) text (not including the #)linkurlcolor='999999'
linkurlsizeA number without a unit, such as 14The font size of the link URL (source) text in pixels (not including a unit)linkurlsize='12'
linkdesccolorA hex color code, without the #The color of the link description text (not including the #)linkdesccolor='999999'
linkdescsizeA number without a unit, such as 14The font size of the link description in pixels (not including a unit)linkdescsize='12'
linkbgcolorA hex color code, without the #The background color of the link box (not including the #)linkbgcolor='EEE'
linkbordercolorA hex color code, without the #The border color of the link box (not including the #)linkbordercolor='CCC'
disablelinkboxtrue, falseWhether to hide the box around shared linksdisablelinkbox=true

Dates and Events

These options control the post date and the event title, date and details.

OptionValuesWhat it doesExample
dateposauthor, above, belowWhether to position the post date directly beneath the post author, above the post text or at the bottom of the postdatepos=below
datesizeA number without a unit, such as 14The font size of the date in pixels (not including a unit)datesize=14
dateweightinherit, normal, boldThe text weight of the datedateweight=normal
datecolorA hex color code, without the #The color of the date (not including the #)datecolor=EAD114
dateformat1 to 19The date format. See the date formats doc for what each number shows. The default is 1 (for example, 2 days ago).dateformat=3
datecustomA PHP date formatA custom date format built from PHP date characters. When set, it is used in place of the dateformat option. See the date formats doc for examples.datecustom='D M jS, Y'
eventtitleformatAny HTML formatThe HTML tag to wrap event titles ineventtitleformat=h5
eventtitlesizeA number without a unit, such as 14The font size of event titles in pixels (not including a unit)eventtitlesize=12
eventtitleweightinherit, normal, boldThe text weight of event titleseventtitleweight=bold
eventtitlecolorA hex color code, without the #The color of event titles (not including the #)eventtitlecolor=666
eventtitlelinktrue, falseWhether to link the event title to the event on Facebookeventtitlelink=true
eventdatesizeA number without a unit, such as 14The font size of event date in pixels (not including a unit)eventdatesize=18
eventdateweightinherit, normal, boldThe text weight of event dateseventdateweight=bold
eventdatecolorA hex color code, without the #The color of event dates (not including the #)eventdatecolor=EB6A00
eventdateposbelow, aboveWhether to position the event date above or below the event titleeventdatepos=below
eventdateformat1 to 21The event date format. See the date formats doc for what each number shows. The default is 14.eventdateformat=12
eventdatecustomA PHP date formatA custom date format for events, built from PHP date characters. When set, it is used in place of the eventdateformat option. See the date formats doc for examples.eventdatecustom='D M jS, Y'
eventdetailssizeA number without a unit, such as 14The font size of the event details in pixels (not including a unit)eventdetailssize=13
eventdetailsweightinherit, normal, boldThe text weight of the event detailseventdetailsweight=bold
eventdetailscolorA hex color code, without the #The color of the event details (not including the #)eventdetailscolor=FFF000
eventlinkcolorA hex color code, without the #The color of the links in the event details (not including the #)eventlinkcolor=333
beforedateAny textText to show before the post date.beforedate="Posted"
afterdateAny textText to show after the post date.afterdate="by us"

Post Actions, Comments and Like Box

These options control the links under each post, the likes, shares and comments, and the Like Box.

OptionValuesWhat it doesExample
linksizeA number without a unit, such as 14The font size of the post link in pixels (not including a unit)linksize=13
linkweightinherit, normal, boldThe text weight of the post linklinkweight=bold
linkcolorA hex color code, without the #The text color of the post linklinkcolor=E01B5D
showfacebooklinktrue, falseWhether to show the ‘View on Facebook’ linkshowfacebooklink=true
facebooklinktextAny textThe text you wish to use in place of the ‘View on Facebook’ link textfacebooklinktext='Read more...'
showsharelinktrue, falseWhether to show the ‘Share’ linkshowsharelink=true
sharelinktextAny textThe text you wish to use in place of the ‘Share’ link textsharelinktext='Share this post'

Likes, Shares and Comments

OptionValuesWhat it doesExample
iconstylelight, darkWhether to use light or dark iconsiconstyle=dark
socialtextcolorA hex color code, without the #The text color of the likes, shares and comments numbers, and the comments text (not including the #)socialtextcolor=FFF
socialbgcolorA hex color code, without the #The background color of the likes, shares and comments box, and the slide down comments box (not including the #)socialbgcolor=111
expandcommentstrue, falseWhether to expand the comments below the posts initiallyexpandcomments=true
commentsnumAny number (max 25)The number of comments to show initially when the comments box is expandedcommentsnum=1
hidecommentimagestrue, falseWhether to hide the profile pictures of the commenters on each posthidecommentimages=true
sociallinkcolorA hex color code, without the #The color of the links in the likes, shares and comments area.sociallinkcolor=333

Like Box

OptionValuesWhat it doesExample
likeboxpostop, bottomWhether to display the Facebook Like box at the top or bottom of the feedlikeboxpos=top
likeboxoutsidetrue, falseWhether to display the Facebook Like box inside or outside of the feed’s containerlikeboxoutside=true
likeboxwidthA number from 180 to 500The width of the Like Box in pixels.likeboxwidth=500
likeboxfacestrue, falseWhether to show the avatars of people who like your pagelikeboxfaces=true
likeboxcovertrue, falseWhether to use your Facebook page Cover photo as the background of the Like Boxlikeboxcover=true
likeboxsmallheadertrue, falseWhether to use a slim or small version of the Like Box headerlikeboxsmallheader=true
likeboxhidebtntrue, falseWhether to hide the call-to-action button in the Like Box (if available)likeboxhidebtn=true
likeboxcolorA hex color code, without the #The background color of the Like Box.likeboxcolor=EEE
likeboxtextcolorA hex color code, without the #The text color of the Like Box.likeboxtextcolor=333
likeboxbordertrue, falseWhether to show a border around the Like Box.likeboxborder=true

Other Options

These options do not belong to a group above.

OptionValuesWhat it doesExample
linkimagesizesmallsquare, largesquare, fullThe size of the image used when sharing a link in a timeline post.linkimagesize='largesquare'
videoactionpost, facebookWhere a video plays when someone clicks it. Use post to play it in the feed (the default) or facebook to open it on Facebook. Any other value plays it in the feed.videoaction=facebook
postimagesizesmall, largeThe size of the images in timeline posts. Applies to timeline feeds only.postimagesize='large'
nofollowtrue, falseWhether to add ‘rel=”nofollow”‘ to all links. Default is set to true.nofollow=false
disablesvgstrue, falseWhether to use image icons in place of SVG icons.disablesvgs=true

Custom Text and Translations

These options change the words the feed shows, for example to translate them. Each one takes any text, such as seemoretext="Read more".

OptionValuesWhat it doesExample
seemoretextAny textThe link text that shows the rest of a shortened postseemoretext="See more"
seelesstextAny textUsed when truncating the post textseelesstext="See less"
maptextAny textAdded after the address of an eventmaptext="Map"
learnmoretextAny textUsed for the Learn More call-to-action buttonlearnmoretext="Learn More"
shopnowtextAny textUsed for the Shop Now call-to-action buttonshopnowtext="Shop Now"
messagepageAny textUsed for the Message Page call-to-action buttonmessagepage="Message Page"
nomoretextAny textDisplayed when there are no more posts available to loadnomoretext="That's all folks"
previouscommentstextAny textUsed in the comments section (when applicable)previouscommentstext="View previous comments"
commentonfacebooktextAny textUsed at the bottom of the comments sectioncommentonfacebooktext="Comment on Facebook"
photostextAny textAdded to the end of an album name. for example (6 photos)photostext="photos"
likethistextAny textShown as, for example, __ and __ like thislikethistext="like this"
likesthistextAny textShown as, for example, __ likes thislikesthistext="likes this"
reactedtothistextAny textShown as, for example, __ reacted to thisreactedtothistext="reacted to this"
andtextAny textShown as, for example, __ and __ like thisandtext="and"
othertextAny textShown as, for example, __, __ and 1 other like thisothertext="other"
otherstextAny textShown as, for example, __, __ and 10 others like thisotherstext="others"
replytextAny textShown as, for example, 1 replyreplytext="reply"
repliestextAny textShown as, for example, 5 repliesrepliestext="replies"
secondtextAny textShown as, for example, 1 second agosecondtext="second"
secondstextAny textShown as, for example, 30 seconds agosecondstext="seconds"
minutetextAny textShown as, for example, 1 minute agominutetext="minute"
minutestextAny textShown as, for example, 5 minutes agominutestext="minutes"
hourtextAny textShown as, for example, 1 hour agohourtext="hour"
hourstextAny textShown as, for example, 2 hours agohourstext="hours"
daytextAny textShown as, for example, 1 day agodaytext="day"
daystextAny textShown as, for example, 2 days agodaystext="days"
weektextAny textShown as, for example, 1 week agoweektext="week"
weekstextAny textShown as, for example, 2 weeks agoweekstext="weeks"
monthtextAny textShown as, for example, 1 month agomonthtext="month"
monthstextAny textShown as, for example, 9 months agomonthstext="months"
yeartextAny textShown as, for example, 1 year agoyeartext="year"
yearstextAny textShown as, for example, 2 years agoyearstext="years"
agotextAny textShown as, for example, 1 day agoagotext="ago"
getdirectionsAny textThe text for the “Get Directions” link.getdirections="Directions"

Extension Options

These options need the matching extension active. Some use the same names as the options above, with a different meaning inside that extension.

Multifeed

OptionValuesWhat it doesExample
idA Page ID or Page nameThe Page to show posts from. Use your Page ID or the name in your Page URL.id="page-one,page-two,page-three"
numAny numberThe total number of posts to display in your feednum=10
limitAny numberThe number of posts to display from each Facebook ID in your multifeedlimit=3

Date Range

OptionValuesWhat it doesExample
frommm/dd/yy, -x minutes, -x hours, -x days, -x weeks, -x monthsThe date to display posts from. Use a date in mm/dd/yy form, or a time in the past, such as -2 days, counted in minutes, hours, days, weeks or months.from="02/15/14"
from="-15 minutes"
from="-1 hour"
from="-2 days"
from="-3 weeks"
from="-1 month"
untilmm/dd/yy, now, -x minutes, -x hours, -x days, -x weeks, -x monthsThe date to display posts until. Use a date in mm/dd/yy form or now for posts up to the present. You can also use a time in the past, such as -2 days, counted in minutes, hours, days, weeks or months.until="02/20/14"
until="now"
until="-15 minutes"
until="-1 hour"
until="-2 days"
until="-3 weeks"
until="-1 month"

Featured Post

OptionValuesWhat it doesExample
featuredpostAny post IDThe ID of the post you want to displayfeaturedpost=123456789012345
featuredpost=1234567890_123456789012345
typestatus, photo, video, link, event, albumThe type of post you are displayingtype=status
type=photo
type=video
type=link
type=event
type=album

Album

OptionValuesWhat it doesExample
albumAny album IDThe ID of the Facebook album you want to displayalbum=123456789012
albumcols1-4The number of columns in the photo gridalbumcols=2
numAny numberThe number of photos to displaynum=50
OptionValuesWhat it doesExample
carouseltrue, falseWhether or not to apply the carousel to this feedcarousel=true
carouselcols1-6The number of columns inside the carousel slide showcarouselcols=3
carouselmobilecols1-6The number of columns on mobile displayscarouselmobilecols=2
carouselheighttallest, clickexpand, autoexpandHow the height of the feed is set. Note: the “autoexpand” option only works when displaying 1 column in the carouselcarouselheight="clickexpand"
carouselarrowsnone, below, onhoverHow arrows are displayed for navigating through the carouselcarouselarrows="onhover"
carouselpagtrue, falseIcons to indicate the relative position of the current slidecarouselpag=true
carouselautoplaytrue, falseCycle through posts automatically when the feed loadscarouselautoplay=true
carouseltimeany numberNumber of milliseconds before a new post is showncarouseltime=5000

Reviews

OptionValuesWhat it doesExample
typereviewsWhether to display reviews in your feedtype=reviews
reviewsrated1-5The ratings of the reviews to showreviewsrated="4,5"
starsizeAny numberThe size of the star iconsstarsize=18
reviewslinktextAny textThe text to use for the linkreviewslinktext="See all"
reviewshidenotexttrue, falseWhether to hide reviews with no text in themreviewshidenotext=true
reviewsmethodauto, batch, allMost users should leave this set as “Auto” and only change it if directed by a member of the support team.reviewsmethod=batch
pagetokenA Page access tokenThe Access Token for the Facebook page you want to display reviews from. Use it when you show review feeds from different Facebook Pages.pagetoken=xxxxx
hidenegativetrue, falseWhether to hide negative reviews.hidenegative=true

That’s it! You now know how to look up every shortcode option for your Facebook feed and which ones your feed reads. To fix an option that has no effect, see Shortcode options aren’t working.

Frequently Asked Questions

Below, we’ve answered some of the most common questions about Facebook Feed shortcode options.

Why is my shortcode option not working?

First check that your feed reads the option. Feeds with a feed number read only a short list of options, which you can see in Which Options Apply to Your Feed. Other settings come from the feed builder. For more help, see Shortcode options aren’t working.

Can I add more than one option to a shortcode?

Yes. List them one after another with a space between each, as shown in Using Shortcode Options.

Do I add the # to a color code?

No. Write the hex code without the #. The other rules for writing values are in Using Shortcode Options.

Can I show the same feed twice with different options?

Yes, within the options your feed reads. Each shortcode reads its own options, so two shortcodes with the same feed number can differ in options such as width, padding or class. The full list is in Which Options Apply to Your Feed.

Which date format should I choose?

The default, 1, shows how long ago a post went up, for example 2 days ago. Numbers 2 to 19 each show a fixed date in a different style. Pick one of them if you want the actual date instead. The date formats doc lists them all, along with the PHP characters you can use for a custom format.

support

Couldn’t find your answer in the docs?

Contact Support