Facebook Pixel List Style News Feeds | Western Kentucky University

List Style


Basic list style feeds display a default header, date, and description, with a button to read the full article. Use Style 1 for no thumbnails and Style 2 to enable thumbnail images if they are available. Style 2 with thumbnails is not compatible with side columns at certain device widths, use Style 1 if you want to display this feed in a side column.


 

Style 1 Basic List Style - (No Thumbnails)


<?php

// id of the news addon, required
$config['newsid'] = '45';

// number of articles to be shown in the feed, required
$config['articles'] = '3';

// style to use when formatting the feed on the page, required
$config['style'] = '1';

// load the functions we need and show the feed based on above settings
include_once ('/var/www/html/_resources/php/news_v2/functions.php');
echo news_display_feed($config);

?>



Style 2 - Basic List Style (With Thumbnails)


<?php

// id of the news addon, required
$config['newsid'] = '45';

// number of articles to be shown in the feed, required
$config['articles'] = '3';

// style to use when formatting the feed on the page, required
$config['style'] = '2';

// load the functions we need and show the feed based on above settings
include_once ('/var/www/html/_resources/php/news_v2/functions.php');
echo news_display_feed($config);

?>



Need Assistance?

The WKU ITS Service Desk is here to help. Give us a call, chat with a representative online, use the Self-Help Knowledge Base and more.

Get Help



Some of the links on this page may require additional software to view.

 Last Modified 4/14/21