/home/eigit/eurolab.mk/wp-content/themes/eurolab/single-careers.php
<?php
get_header();
?>
<section class="first-section-karriera">
</section>
<section class="karriera-div">
<div class="container">
<div class="row">
<div class="col-md-12">
<?php
if (have_posts()):
while (have_posts()) : the_post();
the_content();
endwhile;
else:
echo '<p>Sorry, no posts matched your criteria.</p>';
endif;
?>
</div>
</div>
</div>
</section>
<?php
global $post;
$args = array( 'posts_per_page'=>1234123123123123 , 'post_type'=> 'form', 'category_name' => 'mundesi-punesimi' ,'orderby=ID&order=ASC' );
// ,'offset'=>1
$myposts = get_posts( $args );
//var_dump($myposts);
$counter=1;?>
<section class="karriera-posts aplikimi-posts">
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="aplikimi-box">
<?php foreach ( $myposts as $post ) : setup_postdata( $post ); ?>
<h4><a href="<?php print get_the_permalink();?>"><?php echo esc_html( get_the_title() ); ?></a></h4>
<?php
$counter++;
endforeach; ?>
</div>
</div>
</div>
</div>
</section>
<?php wp_reset_postdata(); ?>
<?php
global $post;
$args = array( 'posts_per_page'=>1234123123123123 , 'post_type'=> 'careers', 'post__not_in' => array (get_the_ID()), 'orderby=ID&order=ASC' );
// ,'offset'=>1
$myposts = get_posts( $args );
$counter=1;?>
<section class="karriera-posts">
<div class="container">
<div class="row">
<?php foreach ( $myposts as $post ) : setup_postdata( $post ); ?>
<div class="col-lg-4 col-md-6">
<div class="press-div">
<div class="press-box">
<div class="press-image">
<a href="<?php print get_the_permalink();?>"> <?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail( 'full', array( 'class' => 'banner-photo' ) ); // show featured image
}
?></a>
</div>
<h4><a href="<?php print get_the_permalink();?>"><?php echo esc_html( get_the_title() ); ?></a></h4>
</div>
</div>
</div>
<?php
$counter++;
endforeach; ?>
</div>
</div>
</section>
<?php wp_reset_postdata();?>
<?php get_footer(); ?>