Hi,
I’m new to PHP and would like some help on which is probably has a very easy solution!
I have added part of the header.php file of a Wordpress site below which I have been asked to edit. Towards the bottom of the code it calls a slideshow (Royal Slider) if the id of the parent page matches that in the code (page id 664). My question is, how can I call another slide show for a page with a different id (id 6096) leaving the current slideshow in place for page id 664?
Many thanks for your help!
<?php } elseif (in_category('courses')) { ?>
<img src="http://inside-industry.org.uk/wp-content/uploads/courses.jpg" alt="slider image"/>
<?php } elseif (in_category('experts')) { ?>
<img src="http://inside-industry.org.uk/wp-content/uploads/experts.jpg" alt="slider image"/>
<?php } elseif (in_category('resources')) { ?>
<img src="http://inside-industry.org.uk/wp-content/uploads/resources.jpg" alt="slider image"/>
<?php } elseif (in_category('news-and-events')) { ?>
<img src="http://inside-industry.org.uk/wp-content/uploads/news.jpg" alt="slider image"/>
<?php } elseif (in_category('companies')) { ?>
<img src="http://inside-industry.org.uk/wp-content/uploads/companies.jpg" alt="slider image"/>
<?php } elseif ('664' == $post->post_parent) { ?>
<?php
//664 is the id of the subsea page, any pages that have this as their parent should have the slider
echo get_new_royalslider(1);
?>
<?php } else { ?>
<?php echo get_the_post_thumbnail( $post->ID, 'banner' ); ?>
<?php }?>
</div>