Facebook Pixel Basic Card News Feeds | Western Kentucky University

Basic Card Style


Basic card style feeds display a default header, date, and description, with a button to read the full article inside of a card. Use Style 1 for no images and Style 2 to enable images. If you have no image uploaded a default image of big red will be used. This style uses the Article Image, not the Thumbnail Image. All basic card style feeds work in central and side columns.


 

Style 3 Basic Card Style - (No Images)


<?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 4 - Basic Card Style (With Image Caps)


<?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'] = '4';

// 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