Featured Post Extension

Overview

The Featured Post extension adds the ability to display a specific post or event based on it’s ID. This allows you to display any single event or post independent of the rest of the feed.

Below is an example of using the Featured Post extension to display a Facebook event by it’s ID.

featured-post-event

Shortcode used above:

[custom-facebook-feed type=event eventsource=eventspage featuredpost=671123009612491]

See the How to use tab above for directions on how to use the extension.

How to use

Installation

Extensions are installed just like any other WordPress plugin. You can follow the same process used when uploading and installing the Custom Facebook Feed Pro plugin.

Shortcode

The Featured Post extension also allows you to specify the ID of a post to display directly in the shortcode:

[custom-facebook-feed type=photo featuredpost=8245623462_10152583755573463]

You can find the ID by using the following format: NumericPageID_PostID

You can also find the ID of your post by using the Facebook Graph Explorer tool. Just enter your Facebook Page ID into the field followed by ‘/posts’ (eg: smashballoon/posts) and click ‘Submit’. You should then see the API feed of your posts. You can use your browser search tool to find your post and then copy and paste the ‘id’ field from that post into the ‘featuredpost’ shortcode option. A screenshot is included below for reference.

facebook-explorer-post-id

If you are displaying an event then you don’t need to use the numeric Page ID and can just use the event ID like so:

[custom-facebook-feed type=event featuredpost=671123009612491]

Type of post

In order for the post to be formatted correctly, you need to specify the type of post you are displaying. If you are displaying a photo then add type=photo to the shortcode, for example. If it’s a link then add type=link, if it’s an event then type=event,¬†etc.

Shortcode Options

Name Attribute Options Description Example
Featured Post ID featuredpost Any post ID The ID of the post you want to display featuredpost=671123009612491
featuredpost=8245623462_10152583755573463
Post Type type status
photo
video
link
event
album
The type of post you are displaying type=status
type=photo
type=video
type=link
type=event
type=album