Created
June 24, 2017 22:31
-
-
Save f4rr3ll1990/ead9a532005da4e4346fdfda641b917e to your computer and use it in GitHub Desktop.
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 | |
$idObj = get_category_by_slug('Имя Категории'); | |
$id = $idObj->term_id; | |
if ( have_posts() ) : query_posts('cat=' . $id); | |
while (have_posts()) : the_post(); ?> | |
<?php echo get_post_meta($post->ID, 'Имя доп поля', true); ?> | |
<? endwhile; endif; wp_reset_query(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment