Advertisement
Guest User

Untitled

a guest
Mar 9th, 2014
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php if (is_home()) {
  2. $the_post = get_post(2);
  3. $headline = $headline->post_title;
  4. $subhead = $headline->post_content;
  5. } elseif (is_single()) {
  6. $headline = the_title();
  7. $subhead = the_content();
  8. } elseif (is_search()) {
  9. $headline = "here is the headline for search";
  10. $subhead = "here is the subhead for search";
  11. }
  12.  
  13. $headline = "here is the default headline";
  14. $subhead = "here is the default subhead";
  15. ?>
  16.  
  17. <header class="row">
  18. <div class="headline"><?php echo $headline; ?></div>
  19. <hr>
  20. <div class="subhead"><?php echo $subhead; ?></div>
  21. </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement