Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <div id="primary" class="content-area">
  2. <div id="content" class="site-content" role="main">
  3.  
  4. <div class="home-header-image">
  5.  
  6. <?php IMAGE WILL GO HERE ?>
  7.  
  8. </div>
  9.  
  10. <div class="top_items_container">
  11. <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Top Content')) :
  12.  
  13. endif; ?>
  14. </div><!-- .top_items_container -->
  15.  
  16. <div class="entry-content">
  17. <?php the_content(); ?>
  18. <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
  19. </div><!-- .entry-content -->
  20.  
  21. <footer class="entry-meta">
  22. <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
  23. </footer><!-- .entry-meta -->
  24. </article><!-- #post -->
  25.  
  26. <?php comments_template(); ?>
  27.  
  28. </div><!-- #content -->
  29. </div><!-- #primary -->
  30.  
  31. wp_get_attachment_image( $post_thumbnail_id, $size, $icon, $attr );
  32.  
  33. wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon = false )
  34.  
  35. $attachmentArray = wp_get_attachment_image_src( $attachment_id, 'thumbnail', false );
  36.  
  37. FALSE !== $attachmentArray
  38. AND print $attachmentArray['url'];
  39.  
  40. <?php $pages = get_pages(array('child_of' => 1)); ?>
  41. <ul>
  42. <?php foreach ($pages as $page): ?>
  43. <li>
  44. <?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?>
  45. <h1><?php echo $page->post_title; ?></h1>
  46. <?php echo $page->post_content; ?>
  47. </li>
  48. <?php endforeach; ?>
  49. </ul>
  50.  
  51. // global $post; // maybe but probably not
  52. echo get_the_post_thumbnail($post->ID);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement