| Server IP : 35.154.56.2 / Your IP : 216.73.217.116 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-0-189 6.8.0-1029-aws #31-Ubuntu SMP Wed Apr 23 18:20:04 UTC 2025 aarch64 User : ubuntu ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /srv/prima-automation.com/html/wp-content/themes/bapl/views/ |
Upload File : |
<?php
$postId = 133;
$args = array('post_type' => 'page', 'post_status' => 'publish', 'p' => $postId); $postQuery = new WP_Query($args);
if ($postQuery->have_posts()) :
while ($postQuery->have_posts()) : $postQuery->the_post();
$postAttributes = get_post_meta(get_the_ID(), 'pageattributes', true);
if(is_array($postAttributes) && count($postAttributes)) :
?><div class="row award-content"><?php
foreach($postAttributes as $attribute) {
$imgSRC = wp_get_attachment_image_src($attribute['page-attribute-image'], 'full');
?>
<div class="col-xs-6 col-sm-4 award1">
<img class="img-responsive" src="<?php echo $imgSRC[0]; ?>">
<h4><?php echo $attribute['page-attribute-title']; ?></h4>
<p><?php echo $attribute['page-attribute-description']; ?></p>
</div>
<?php
}
?></div><?php
endif;
endwhile;
endif;
?>