Guest User

Untitled

a guest
Jan 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.02 KB | None | 0 0
  1. <div id="content">
  2.  
  3. <!-- LEFT COLUMN -->
  4.  
  5. <div id="cl">
  6. <div id="la"></div>
  7. <?php $releases = new WP_Query('cat=3&posts_per_page=2'); ?>
  8. <?php while ($releases->have_posts()) : $releases->the_post(); ?>
  9. <div class="gold">
  10. <?php if (has_post_thumbnail( $post->ID ) ): ?>
  11. <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
  12. <a href="<?php echo get_permalink( $id ); ?>" class="permalink">
  13. <img src="<?php echo $image[0]; ?>" alt="Cherokee Leaves" title="Cherokee Leaves" class="thumb" border=0 /></a>
  14. <?php endif; ?>
  15. <div class="descbox">
  16.  
  17. <a href="<?php echo get_permalink( $id ); ?>" class="titlelink"><h3 class="title"><?php the_title(); ?></h3></a>
  18. <h4 class="author"><?php echo get_post_meta( get_the_ID(), 'author', true ); ?></h4>
  19. <p class="desc"><?php echo get_post_meta( get_the_ID(), 'desc', true ); ?></p>
  20. <h5 class="price"><?php echo get_post_meta( get_the_ID(), 'price', true ); ?></h5>
  21. <a href="<?php echo get_permalink( $id ); ?>" class="permalink">link to book's page</a>
  22. </div>
  23. <div class="clear"></div>
  24. </div><div class="goldshadow"></div>
  25. <?php endwhile; // End the loop. Whew. ?>
  26.  
  27.  
  28. <!--<div class="gold">
  29. <img src="images/thumbs/charlene_book.png" alt="Charlene and Friends" title="Charlene and Friends" class="thumb" />
  30. <div class="descbox">
  31. <h3 class="title">Charlene and Friends
  32. At Prospect Park</h3>
  33. <h4 class="author">W. H. Robinson</h4>
  34. <p class="desc">The Book summary will go here and will likely include at least four to five lines of summary text about the book and it’s plot or whatever else you’d like.</p>
  35. <h5 class="price">Book Price</h5>
  36. <a href="#" class="permalink">link to book's page</a>
  37. </div>
  38. <div class="clear"></div>
  39. </div><div class="goldshadow"></div> -->
  40.  
  41. </div>
  42.  
  43. <!-- RIGHT COLUMN -->
  44. <div id="cr">
  45. <div id="news"></div>
  46. <?php $news = new WP_Query('cat=4&posts_per_page=2'); ?>
  47. <?php while ($news->have_posts()) : $news->the_post(); ?>
  48. <div class="gold">
  49. <?php if (has_post_thumbnail( $post->ID ) ): ?>
  50. <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
  51. <a href="<?php echo get_permalink( $id ); ?>" class="permalink">
  52. <img src="<?php echo $image[0]; ?>" alt="Cherokee Leaves" title="Cherokee Leaves" class="thumb" border=0 /></a>
  53. <?php endif; ?>
  54. <div class="descbox">
  55. <h3 class="newstitle"><?php the_title(); ?></h3>
  56. <p class="desc"><?php echo get_post_meta( get_the_ID(), 'desc', true ); ?></p>
  57. <a href="<?php echo get_permalink( $id ); ?>" class="newslink">Read More</a>
  58. </div>
  59. <div class="clear"></div>
  60. </div><div class="goldshadow"></div>
  61. <?php endwhile; // End the loop. Whew. ?>
  62.  
  63. <div class="gold">
  64. <img src="images/thumbs/charlene_book.png" alt="Charlene and Friends" title="Charlene and Friends" class="thumb" />
  65. <div class="descbox">
  66. <h3 class="title">Charlene and Friends
  67. At Prospect Park</h3>
  68. <h4 class="author">W. H. Robinson</h4>
  69. <p class="desc">The Book summary will go here and will likely include at least four to five lines of summary text about the book and it’s plot or whatever else you’d like.</p>
  70. <h5 class="price">Book Price</h5>
  71. <a href="#" class="permalink">link to book's page</a>
  72. </div>
  73. <div class="clear"></div>
  74. </div><div class="goldshadow"></div>
  75. </div>
  76. <div class="clear"></div>
  77. </div> </div>
Add Comment
Please, Sign In to add comment