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
- Which Options Apply to Your Feed
- Source, Post Count and Caching
- General Styling and Columns
- Post Types
- Post Layout and Style
- Load More Button, Lightbox and Filters
- Feed Header
- Post Text, Descriptions and Shared Links
- Dates and Events
- Post Actions, Comments and Like Box
- Other Options
- Custom Text and Translations
- Extension Options
- Frequently Asked Questions
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.
- First, open the page or post where the feed appears. Find the Shortcode block or the text where you pasted the shortcode.
- 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. - 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 arewidth,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,ajaxandcff_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.
| Option | Values | What it does | Example |
|---|---|---|---|
id | A Page ID or Page name | The Page to show posts from. Use your Page ID or the name in your Page URL. | id=your-page-name |
ownaccesstoken | true, false | Tells 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 |
accesstoken | Your Access Token | A specific access token to use in one feed. A connected source for the same Page always takes priority. | accesstoken='YOUR_ACCESS_TOKEN' |
account | Account ID | An account ID to use in place of the Page ID and access token in the plugin settings. It overrides id. | account=12345 |
num | Any number | The number of posts you wish to display | num=5 |
limit | Any number | The number of posts retrieved from the Facebook API | limit=5 |
offset | Any number less than the number of posts you’re displaying | The number of posts to offset the feed by. For example, offset=2 would start the feed at the third post. | offset=1 |
showpostsby | me, others, onlyothers | Whether to show posts by only the page owner, anyone who posts on your page, or only others who post on your page. | showpostsby=others |
cachetime | A whole number, 1 or more | How long to keep the feed cached before checking Facebook again. Use it with cacheunit. A value below 1 becomes 1. | cachetime=5 |
cacheunit | minutes, hours, days | The unit for cachetime. The default is minutes. | cacheunit=hours |
locale | A locale code, such as en_US or es_ES | The language that the Like box is localized to | locale=es_ES |
ajax | true, false | Whether or not the Custom Facebook Feed content is being loaded in via Ajax by your WordPress theme | ajax=true |
nummobile | A number | The number of posts to show on mobile devices. | nummobile=3 |
cachetype | page, background | Whether 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.
| Option | Values | What it does | Example |
|---|---|---|---|
width | A number and a unit, such as 10px | The width of the feed container (including the unit) | width=500pxwidth=50% |
height | A number and a unit, such as 10px | The height of the feed container (including the unit) | height=500px |
padding | A number and a unit, such as 10px | The padding applied to the feed container (including the unit) | padding=20pxpadding=5% |
bgcolor | A hex color code, without the # | The background color of the feed (not including the #) | bgcolor=FF0000 |
class | Any text string (may include dashes or underscores, but no spaces) | The CSS class to be added to the feed’s container | class=myfeed |
cols | 1-6 | The number of columns for the feed on desktop. | cols=3 |
colsmobile | 1 to 3 | The number of columns on mobile devices. | colsmobile=2 |
masonry | true, false | Whether to show the feed in a masonry layout. Legacy feeds only. | masonry=true |
masonrycols | A number | The number of masonry columns on desktop, used only when cols is not set. | masonrycols=3 |
masonrycolsmobile | A number | The 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.
| Option | Values | What it does | Example |
|---|---|---|---|
type | events, links, photos, videos, status or statuses, albums | The types of posts you want to display | type=events,status,links |
Events
These options apply only when the feed shows the events post type alone.
| Option | Values | What it does | Example |
|---|---|---|---|
eventsource | eventspage, timeline | Whether to display your events from your Facebook Events page or from the timeline (only applies when only displaying the events post type) | eventsource=eventspage |
pastevents | true, false | Whether 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 |
eventoffset | Any number | The 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 |
eventimage | full, cropped | Whether 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 |
noeventstext | Any text | The text to display when there are no upcoming events to display | noeventstext="More events coming soon" |
interestedtext | Any text | The text to display to show how many people are interested in an event | interestedtext="interested" |
goingtext | Any text | The text to display to show how many people are going to an event | goingtext="going" |
buyticketstext | Any text | The text to display for the “Buy Tickets” link | buyticketstext="Tickets" |
Albums
These options apply only when the feed shows the albums post type alone.
| Option | Values | What it does | Example |
|---|---|---|---|
albumsource | photospage, timeline | Whether to display your albums from your Facebook Photos page or from the timeline (only applies when only displaying the albums post type) | albumsource=photospage |
showalbumtitle | true, false | Whether to display the album title when displaying only the Albums post type | showalbumtitle=true |
showalbumnum | true, false | Whether to display the album number when displaying only the Albums post type | showalbumnum=true |
albumcols | 1-8 | The number of columns to display albums in when displaying only the Albums post type | albumcols=3 |
Photos
These options apply only when the feed shows the photos post type alone.
| Option | Values | What it does | Example |
|---|---|---|---|
photosource | photospage, timeline | Whether to display your photos from your Facebook Photos page or from the timeline (only applies when only displaying the photos post type) | photosource=photospage |
photocols | 1-8 | The number of columns to display photos in when displaying only the Photos post type | photocols=3 |
Videos
These options apply only when the feed shows the videos post type alone.
| Option | Values | What it does | Example |
|---|---|---|---|
videosource | videospage, timeline | Whether 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 |
showvideoname | true, false | Whether to display the video name when displaying only the Videos post type | showvideoname=true |
showvideodesc | true, false | Whether to display the video description when displaying only the Videos post type | showvideodesc=true |
videocols | 1-8 | The number of columns to display videos in when displaying only the Videos post type | videocols=3 |
playlist | Playlist 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.
| Option | Values | What it does | Example |
|---|---|---|---|
layout | thumb, half, full | The post layout you want to use | layout=thumb |
mediaposition | above, below | Whether to display the photo or video above or below the post text. Only applies to the Full-width layout. | mediaposition='above' |
enablenarrow | true, false | In 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 |
oneimage | true, false | If a Facebook post contains more than one photo, enabling this setting shows only the first photo. | oneimage=true |
include | A comma-separated list | The 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 |
exclude | A comma-separated list | The parts of the post to leave out, separated by commas, when they apply. Use the same values as include. | exclude=social,link,likebox |
showauthor | true, false | Whether to show or hide the name and avatar of the post author | showauthor=false |
poststyle | regular, boxed | A regular post style or a “boxed” style with a background color, a box shadow or both applied | poststyle='boxed' |
boxshadow | true, false | Whether to apply a subtle box shadow to the “boxed” post style | boxshadow='true' |
postbgcolor | A hex color code, without the # | The background color of each individual Facebook post (not including the #) | postbgcolor=ff0000 |
postcorners | Any number (not including a unit) | The radius of the rounded corners on a post (not including px) | postcorners=10 |
sepcolor | A hex color code, without the # | The color of the line separating the posts | sepcolor=CFCFCF |
sepsize | A number without a unit, such as 14 | The thickness in pixels of the line separating the posts | sepsize=3 |
textlength | Any number | The maximum character length of the post text | textlength=200 |
desclength | Any number | The maximum character length of the description | desclength=150 |
mediaside | left, right | The 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.
| Option | Values | What it does | Example |
|---|---|---|---|
loadmore | true, false | Whether to show the Load More button at the bottom of the feed | loadmore=false |
buttoncolor | A hex color code, without the # | The background color of the Load More button (not including the #) | buttoncolor=ff0000 |
buttonhovercolor | A hex color code, without the # | The background color of the Load More button when hovered upon (not including the #) | buttonhovercolor=333333 |
buttontextcolor | A hex color code, without the # | The text color of the Load More button (not including the #) | buttontextcolor=CCCCCC |
buttontext | Any text | The text you wish to use in place of the ‘Load More’ text | buttontext='More..' |
disablelightbox | true, false | Whether to disable the popup photo or video lightbox | disablelightbox=true |
lightboxcomments | true, false | Whether to display post comments in the popup lightbox (works for timeline posts only) | lightboxcomments=true |
filter | any text string or hashtag | Only 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" |
exfilter | any text string or hashtag | Do 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.
| Option | Values | What it does | Example |
|---|---|---|---|
showheader | true, false | Whether to display a customizable header at the top of the feed | showheader=true |
headeroutside | true, false | Whether to display the feed header inside or outside of the feed’s container | headeroutside=true |
headertext | Any text | The text to display in the header | headertext='Facebook Feed' |
headerbg | A hex color code, without the # | The background color of the feed header (not including the #) | headerbg=DDD |
headerpadding | A number and a unit, such as 10px | The padding applied to the feed header (including the unit) | headerpadding=20px |
headertextsize | A number without a unit, such as 14 | The font size of the header text in pixels (not including a unit) | headertextsize=28 |
headertextweight | inherit, normal, bold | The text weight of the header text | headertextweight=bold |
headertextcolor | A hex color code, without the # | The color of the header text (not including the #) | headertextcolor=333 |
headericon | facebook-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-square | The icon to use in the feed header | headericon=facebook |
headericoncolor | A hex color code, without the # | The color of the icon in the feed header (not including the #) | headericoncolor=FFF |
headericonsize | A number without a unit, such as 14 | The size of the header icon in pixels (not including a unit) | headericonsize=28 |
headertype | visual, text | The style of the feed header. Legacy feeds only. | headertype=visual |
headercover | true, false | Whether to show the cover photo in a visual header. | headercover=true |
headername | true, false | Whether to show the Page name in a visual header. | headername=true |
headerbio | true, false | Whether to show the Page bio in a visual header. | headerbio=true |
headercoverheight | A number | The 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.
| Option | Values | What it does | Example |
|---|---|---|---|
authorsize | A number without a unit, such as 14 | The font size of the author text in pixels (not including a unit) | authorsize=20 |
authorcolor | A hex color code, without the # | The color of the author text (not including the #) | authorcolor=ff0000 |
textformat | Any HTML format | The HTML tag to wrap the post text in | textformat=ptextformat=h4 |
textsize | A number without a unit, such as 14 | The font size of the post text in pixels (not including a unit) | textsize=12 |
textweight | inherit, normal, bold | The weight of the post text | textweight=bold |
textcolor | A hex color code, without the # | The color of the post text (not including the #) | textcolor=333 |
textlinkcolor | A hex color code, without the # | The color of the links in the post text (not including the #) | textlinkcolor=E69100 |
textlink | true, false | Whether to link the post text to the post on Facebook | textlink=true |
posttags | true, false | Whether to link @tags in your posts | posttags=false |
linkhashtags | true, false | Whether to link hashtags in your posts | linkhashtags=false |
descsize | A number without a unit, such as 14 | The font size of the descriptions in pixels (not including a unit) | descsize=11 |
descweight | inherit, normal, bold | The weight of the description | descweight=bold |
desccolor | A hex color code, without the # | The color of the description (not including the #) | desccolor=9F9F9F |
linktitleformat | Any HTML format | The HTML tag to wrap shared link titles in | linktitleformat='h3' |
linktitlesize | A number without a unit, such as 14 | The font size of the link title in pixels (not including a unit) | linktitlesize='18' |
linktitlecolor | A hex color code, without the # | The color of the link title text (not including the #) | linktitlecolor='ff0000' |
linkurlcolor | A hex color code, without the # | The color of the link URL (source) text (not including the #) | linkurlcolor='999999' |
linkurlsize | A number without a unit, such as 14 | The font size of the link URL (source) text in pixels (not including a unit) | linkurlsize='12' |
linkdesccolor | A hex color code, without the # | The color of the link description text (not including the #) | linkdesccolor='999999' |
linkdescsize | A number without a unit, such as 14 | The font size of the link description in pixels (not including a unit) | linkdescsize='12' |
linkbgcolor | A hex color code, without the # | The background color of the link box (not including the #) | linkbgcolor='EEE' |
linkbordercolor | A hex color code, without the # | The border color of the link box (not including the #) | linkbordercolor='CCC' |
disablelinkbox | true, false | Whether to hide the box around shared links | disablelinkbox=true |
Dates and Events
These options control the post date and the event title, date and details.
| Option | Values | What it does | Example |
|---|---|---|---|
datepos | author, above, below | Whether to position the post date directly beneath the post author, above the post text or at the bottom of the post | datepos=below |
datesize | A number without a unit, such as 14 | The font size of the date in pixels (not including a unit) | datesize=14 |
dateweight | inherit, normal, bold | The text weight of the date | dateweight=normal |
datecolor | A hex color code, without the # | The color of the date (not including the #) | datecolor=EAD114 |
dateformat | 1 to 19 | The date format. See the date formats doc for what each number shows. The default is 1 (for example, 2 days ago). | dateformat=3 |
datecustom | A PHP date format | A 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' |
eventtitleformat | Any HTML format | The HTML tag to wrap event titles in | eventtitleformat=h5 |
eventtitlesize | A number without a unit, such as 14 | The font size of event titles in pixels (not including a unit) | eventtitlesize=12 |
eventtitleweight | inherit, normal, bold | The text weight of event titles | eventtitleweight=bold |
eventtitlecolor | A hex color code, without the # | The color of event titles (not including the #) | eventtitlecolor=666 |
eventtitlelink | true, false | Whether to link the event title to the event on Facebook | eventtitlelink=true |
eventdatesize | A number without a unit, such as 14 | The font size of event date in pixels (not including a unit) | eventdatesize=18 |
eventdateweight | inherit, normal, bold | The text weight of event dates | eventdateweight=bold |
eventdatecolor | A hex color code, without the # | The color of event dates (not including the #) | eventdatecolor=EB6A00 |
eventdatepos | below, above | Whether to position the event date above or below the event title | eventdatepos=below |
eventdateformat | 1 to 21 | The event date format. See the date formats doc for what each number shows. The default is 14. | eventdateformat=12 |
eventdatecustom | A PHP date format | A 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' |
eventdetailssize | A number without a unit, such as 14 | The font size of the event details in pixels (not including a unit) | eventdetailssize=13 |
eventdetailsweight | inherit, normal, bold | The text weight of the event details | eventdetailsweight=bold |
eventdetailscolor | A hex color code, without the # | The color of the event details (not including the #) | eventdetailscolor=FFF000 |
eventlinkcolor | A hex color code, without the # | The color of the links in the event details (not including the #) | eventlinkcolor=333 |
beforedate | Any text | Text to show before the post date. | beforedate="Posted" |
afterdate | Any text | Text 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.
| Option | Values | What it does | Example |
|---|---|---|---|
linksize | A number without a unit, such as 14 | The font size of the post link in pixels (not including a unit) | linksize=13 |
linkweight | inherit, normal, bold | The text weight of the post link | linkweight=bold |
linkcolor | A hex color code, without the # | The text color of the post link | linkcolor=E01B5D |
showfacebooklink | true, false | Whether to show the ‘View on Facebook’ link | showfacebooklink=true |
facebooklinktext | Any text | The text you wish to use in place of the ‘View on Facebook’ link text | facebooklinktext='Read more...' |
showsharelink | true, false | Whether to show the ‘Share’ link | showsharelink=true |
sharelinktext | Any text | The text you wish to use in place of the ‘Share’ link text | sharelinktext='Share this post' |
Likes, Shares and Comments
| Option | Values | What it does | Example |
|---|---|---|---|
iconstyle | light, dark | Whether to use light or dark icons | iconstyle=dark |
socialtextcolor | A hex color code, without the # | The text color of the likes, shares and comments numbers, and the comments text (not including the #) | socialtextcolor=FFF |
socialbgcolor | A 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 |
expandcomments | true, false | Whether to expand the comments below the posts initially | expandcomments=true |
commentsnum | Any number (max 25) | The number of comments to show initially when the comments box is expanded | commentsnum=1 |
hidecommentimages | true, false | Whether to hide the profile pictures of the commenters on each post | hidecommentimages=true |
sociallinkcolor | A hex color code, without the # | The color of the links in the likes, shares and comments area. | sociallinkcolor=333 |
Like Box
| Option | Values | What it does | Example |
|---|---|---|---|
likeboxpos | top, bottom | Whether to display the Facebook Like box at the top or bottom of the feed | likeboxpos=top |
likeboxoutside | true, false | Whether to display the Facebook Like box inside or outside of the feed’s container | likeboxoutside=true |
likeboxwidth | A number from 180 to 500 | The width of the Like Box in pixels. | likeboxwidth=500 |
likeboxfaces | true, false | Whether to show the avatars of people who like your page | likeboxfaces=true |
likeboxcover | true, false | Whether to use your Facebook page Cover photo as the background of the Like Box | likeboxcover=true |
likeboxsmallheader | true, false | Whether to use a slim or small version of the Like Box header | likeboxsmallheader=true |
likeboxhidebtn | true, false | Whether to hide the call-to-action button in the Like Box (if available) | likeboxhidebtn=true |
likeboxcolor | A hex color code, without the # | The background color of the Like Box. | likeboxcolor=EEE |
likeboxtextcolor | A hex color code, without the # | The text color of the Like Box. | likeboxtextcolor=333 |
likeboxborder | true, false | Whether to show a border around the Like Box. | likeboxborder=true |
Other Options
These options do not belong to a group above.
| Option | Values | What it does | Example |
|---|---|---|---|
linkimagesize | smallsquare, largesquare, full | The size of the image used when sharing a link in a timeline post. | linkimagesize='largesquare' |
videoaction | post, facebook | Where 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 |
postimagesize | small, large | The size of the images in timeline posts. Applies to timeline feeds only. | postimagesize='large' |
nofollow | true, false | Whether to add ‘rel=”nofollow”‘ to all links. Default is set to true. | nofollow=false |
disablesvgs | true, false | Whether 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".
| Option | Values | What it does | Example |
|---|---|---|---|
seemoretext | Any text | The link text that shows the rest of a shortened post | seemoretext="See more" |
seelesstext | Any text | Used when truncating the post text | seelesstext="See less" |
maptext | Any text | Added after the address of an event | maptext="Map" |
learnmoretext | Any text | Used for the Learn More call-to-action button | learnmoretext="Learn More" |
shopnowtext | Any text | Used for the Shop Now call-to-action button | shopnowtext="Shop Now" |
messagepage | Any text | Used for the Message Page call-to-action button | messagepage="Message Page" |
nomoretext | Any text | Displayed when there are no more posts available to load | nomoretext="That's all folks" |
previouscommentstext | Any text | Used in the comments section (when applicable) | previouscommentstext="View previous comments" |
commentonfacebooktext | Any text | Used at the bottom of the comments section | commentonfacebooktext="Comment on Facebook" |
photostext | Any text | Added to the end of an album name. for example (6 photos) | photostext="photos" |
likethistext | Any text | Shown as, for example, __ and __ like this | likethistext="like this" |
likesthistext | Any text | Shown as, for example, __ likes this | likesthistext="likes this" |
reactedtothistext | Any text | Shown as, for example, __ reacted to this | reactedtothistext="reacted to this" |
andtext | Any text | Shown as, for example, __ and __ like this | andtext="and" |
othertext | Any text | Shown as, for example, __, __ and 1 other like this | othertext="other" |
otherstext | Any text | Shown as, for example, __, __ and 10 others like this | otherstext="others" |
replytext | Any text | Shown as, for example, 1 reply | replytext="reply" |
repliestext | Any text | Shown as, for example, 5 replies | repliestext="replies" |
secondtext | Any text | Shown as, for example, 1 second ago | secondtext="second" |
secondstext | Any text | Shown as, for example, 30 seconds ago | secondstext="seconds" |
minutetext | Any text | Shown as, for example, 1 minute ago | minutetext="minute" |
minutestext | Any text | Shown as, for example, 5 minutes ago | minutestext="minutes" |
hourtext | Any text | Shown as, for example, 1 hour ago | hourtext="hour" |
hourstext | Any text | Shown as, for example, 2 hours ago | hourstext="hours" |
daytext | Any text | Shown as, for example, 1 day ago | daytext="day" |
daystext | Any text | Shown as, for example, 2 days ago | daystext="days" |
weektext | Any text | Shown as, for example, 1 week ago | weektext="week" |
weekstext | Any text | Shown as, for example, 2 weeks ago | weekstext="weeks" |
monthtext | Any text | Shown as, for example, 1 month ago | monthtext="month" |
monthstext | Any text | Shown as, for example, 9 months ago | monthstext="months" |
yeartext | Any text | Shown as, for example, 1 year ago | yeartext="year" |
yearstext | Any text | Shown as, for example, 2 years ago | yearstext="years" |
agotext | Any text | Shown as, for example, 1 day ago | agotext="ago" |
getdirections | Any text | The 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
| Option | Values | What it does | Example |
|---|---|---|---|
id | A Page ID or Page name | The Page to show posts from. Use your Page ID or the name in your Page URL. | id="page-one,page-two,page-three" |
num | Any number | The total number of posts to display in your feed | num=10 |
limit | Any number | The number of posts to display from each Facebook ID in your multifeed | limit=3 |
Date Range
| Option | Values | What it does | Example |
|---|---|---|---|
from | mm/dd/yy, -x minutes, -x hours, -x days, -x weeks, -x months | The 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" |
until | mm/dd/yy, now, -x minutes, -x hours, -x days, -x weeks, -x months | The 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
| Option | Values | What it does | Example |
|---|---|---|---|
featuredpost | Any post ID | The ID of the post you want to display | featuredpost=123456789012345featuredpost=1234567890_123456789012345 |
type | status, photo, video, link, event, album | The type of post you are displaying | type=statustype=phototype=videotype=linktype=eventtype=album |
Album
| Option | Values | What it does | Example |
|---|---|---|---|
album | Any album ID | The ID of the Facebook album you want to display | album=123456789012 |
albumcols | 1-4 | The number of columns in the photo grid | albumcols=2 |
num | Any number | The number of photos to display | num=50 |
Carousel
| Option | Values | What it does | Example |
|---|---|---|---|
carousel | true, false | Whether or not to apply the carousel to this feed | carousel=true |
carouselcols | 1-6 | The number of columns inside the carousel slide show | carouselcols=3 |
carouselmobilecols | 1-6 | The number of columns on mobile displays | carouselmobilecols=2 |
carouselheight | tallest, clickexpand, autoexpand | How the height of the feed is set. Note: the “autoexpand” option only works when displaying 1 column in the carousel | carouselheight="clickexpand" |
carouselarrows | none, below, onhover | How arrows are displayed for navigating through the carousel | carouselarrows="onhover" |
carouselpag | true, false | Icons to indicate the relative position of the current slide | carouselpag=true |
carouselautoplay | true, false | Cycle through posts automatically when the feed loads | carouselautoplay=true |
carouseltime | any number | Number of milliseconds before a new post is shown | carouseltime=5000 |
Reviews
| Option | Values | What it does | Example |
|---|---|---|---|
type | reviews | Whether to display reviews in your feed | type=reviews |
reviewsrated | 1-5 | The ratings of the reviews to show | reviewsrated="4,5" |
starsize | Any number | The size of the star icons | starsize=18 |
reviewslinktext | Any text | The text to use for the link | reviewslinktext="See all" |
reviewshidenotext | true, false | Whether to hide reviews with no text in them | reviewshidenotext=true |
reviewsmethod | auto, batch, all | Most users should leave this set as “Auto” and only change it if directed by a member of the support team. | reviewsmethod=batch |
pagetoken | A Page access token | The 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 |
hidenegative | true, false | Whether 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.