| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/usa_sites/governmentgrants.us/wp-content/themes/governmentgrantsus/ |
Upload File : |
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
*/
get_header();
$featImg = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), "large" );
?>
<!-- Single post code start here -->
<section class="blogBgOuter" style="background:url(<?php echo get_template_directory_uri();?>/images/blogBg.png) left top no-repeat;">
<div class="container">
<div class="blogHd"><h1><?php the_title(); ?></h1></div>
</div>
</section>
<section class="grantMidCont">
<div class="container">
<?php
if (!empty($featImg)){ ?>
<span class="blogImg"><img src="<?php echo $featImg[0];?>" alt="<?php the_title(); ?>" /></span>
<?php } ?>
<div class="postedDate">Posted on <em><?php the_time('F jS, Y'); ?></em></div>
<div class="content-box">
<?php
if (have_posts()) : while (have_posts()) : the_post();
the_content();
?>
<div class="comments">
<?php
if ( comments_open() || get_comments_number() ) {
comments_template();
}
?>
</div>
<?php
endwhile;
endif;
?>
</div>
<div class="jobList">
<ul class="clearfix">
<?php
query_posts(array(
'post_type' => 'services-offered',
'order' => 'ASC',
'post_status' => 'publish',
'posts_per_page' => -1
));
while (have_posts()) : the_post();
$serviceContent = get_the_content();
$serviceURL = get_post_meta( $post->ID, 'service_apply_url_one', true);
?>
<li>
<div class="jobHd">
<h2><?php the_title(); ?></h2>
<a title="Apply Now" href="<?php echo $serviceURL;?>">Apply Now</a>
</div>
<div class="jobdesc">
<?php
echo $serviceContent;
?>
</div>
</li>
<?php
endwhile;
wp_reset_query();
?>
</ul>
</div>
</div>
</section>
<!-- Single post code end here -->
<?php
get_footer();
?>