Last active
December 23, 2015 10:58
-
-
Save sharkyak/02da95aaf98415f7dcfe to your computer and use it in GitHub Desktop.
Wordpress вывод основных полей
This file contains hidden or 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 echo get_bloginfo('name'); ?> | |
| <?php echo get_bloginfo('description'); ?> | |
| <?php echo get_cat_name(4);?> | |
| <?php echo category_description( $category_id ); ?> | |
| <?php $category = get_the_category( $custompost ); echo $category[0]->cat_name; ?> | |
| <?php $url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); $url = $url['0']; ?> | |
| src="<?php echo $url; ?>" | |
| <?php echo get_post_meta(get_the_ID(), 'стр1', true); ?> | |
| <?php while ( have_posts() ) : the_post(); the_content(); endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment