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 behaviour 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, 'mbblog-md') ); 
if(!empty($image_feature)) { 
echo ""; 

Related Articles