First question on here. I am doing a custom Wordpress site and I need to divide the post page (single.php) so that if it is a child of my WORK page it displays a certain HTML, else it displays another chunk of HTML.
At the moment I have the following inside the single.php file:
<div class="work_section">
<p>WORK SECTION GOES HERE</p>
</div>
<!--div:work_section -->
<div class="news_section">
<p>NEWS SECTION GOES HERE</p>
</div>
<!--div:news_section -->
i am trying to tell it to display one if it's a child of WORK page, or else the other div... how would I go about doing this?
Many thanks