<?php
$id=130;
$post = get_post($id);
$content = apply_filters('the_content', $post->post_content);
//echo $content;
?>
<div class="row">
<div class="col-md-12 h1">
<h1><?php echo get_the_title($id); ?></h1>
</div>
<div class="col-md-8 center">
<?php
$image = get_field('product_image');
if( !empty($image) ): ?>
<img class="product-img" src="<?php echo $image; ?>" alt="<?php echo get_the_title($id); ?>">
<?php endif; ?>
<?php echo the_field('product_video');?>
<?php echo $content; ?>
</div>
</div>
description:
Display the page main content, as a note that we are using custom template for every page in telkomtelstra’s website.
usage:
$id=130; the 130 is the page id for “Managed Cloud Service”, you can edit the page base in page id here: http://webtttest.southeastasia.cloudapp.azure.com/wp-admin/post.php?post=130&action=edit