Read our documentation
For more in-depth guides on onboarding and setup.
Read Documentation

Showing custom fields in your News app

https://www.youtube.com/watch?v=igf_VzuCqdI With MobiLoud you have the ability to add any custom code to your app's post/page layout. Just click on MobiLoud in your WordPress admin dashboard, select Settings and then click on the Editor tab. You'll see something like this:

MobiLoud Code Editor

Using the Editor, select a "PHP" position within the article screen, like "PHP after Content". This allows you to add any PHP code and have the result shown below the main article or page contents. Note for "PHP" spaces, you should enter PHP code directly, without the ID, 'fieldname', true). Say for example you want to include the value for a book title you've reviewed and include the "Title:" text before the value, while checking if the value is actually present for the current post, you'd use this code:

$title = get_post_meta( $post->ID, 'title', true );

// check if the custom field has a value

if( ! empty( $title ) ) {

echo "<strong>Book title</strong>: ".$title."<br/>";

}