Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (is_home()) {
- $the_post = get_post(2);
- $headline = $headline->post_title;
- $subhead = $headline->post_content;
- } elseif (is_single()) {
- $headline = the_title();
- $subhead = the_content();
- } elseif (is_search()) {
- $headline = "here is the headline for search";
- $subhead = "here is the subhead for search";
- }
- $headline = "here is the default headline";
- $subhead = "here is the default subhead";
- ?>
- <header class="row">
- <div class="headline"><?php echo $headline; ?></div>
- <hr>
- <div class="subhead"><?php echo $subhead; ?></div>
- </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement