Showing featured images in your News app

MobiLoud offers an option to include your featured image at the top of every article. This will be the default behavior in your app.

If you’d rather show the image elsewhere in the article, for example below the title, you can use the Editor functionality and add the following code in any PHP positions, such as “PHP before content”.

$image_feature = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
if(!empty($image_feature)) {
    echo '<img src="'.$image_feature.'" />';
}

Related Articles

Firebase

Getting started

Getting started

Canvas

Configuration

Configuring menus

Subscriptions

News

Push Notifications

Push Notifications

Advertising

App Submission

Frequently Asked Questions

Managing your app

News Configuration

Pricing & Billing

Publishing Apps on App Store

Publishing Apps on Google Play

Push Notifications