Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if(is_front_page() || is_page('Technology')): ?>
- <div id="sideimg">
- <!-- Put the image you want here -->
- <img src="" alt="" />
- </div>
- <?php elseif(is_page('Solutions' || $post->post_parent == get_ID_by_name('Solutions'))){ ?>
- <ul id="sidebar">
- <li class="heading"><h2>Multilingual Solutions from 3PO</h2></li>
- <?php
- global $post;
- $myposts = get_posts('numberposts=-1&post_parent=17');
- foreach($myposts as $post) :
- setup_postdata($post);
- ?>
- <li><img src="<?php bloginfo('stylesheet_directory'); ?>/images/thumb.jpg" alt="" />
- <a href="<?php the_permalink(); ?>" class="title"><?php the_title(); ?></a>
- <?php the_excerpt(); ?>
- <a href="<?php the_permalink(); ?>">Learn more »</a>
- </li>
- <?php endforeach; ?>
- </ul>
- <?php }; ?>
Add Comment
Please, Sign In to add comment