Created
January 1, 2015 18:55
-
-
Save hemusyl/c3346d86a0031ab9ca4a to your computer and use it in GitHub Desktop.
Global Post From Rasel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $post; | |
$args = array( 'posts_per_page' => 10, 'post_type'=> 'custom-post-type' ); | |
$myposts = get_posts( $args ); | |
foreach( $myposts as $post ) : setup_postdata($post); ?> | |
<?php | |
$job_link= get_post_meta($post->ID, 'job_instructions', true); | |
?> | |
<h2><?php the_title(); ?></h2> | |
<?php the_content(); ?> | |
<p><?php echo $job_link; ?></p> | |
<?php endforeach; ?> | |
<?php wp_reset_postdata(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment