URL – not recognised with conditional logic
-
I’ve changed the url to /current-vacancies/ and it’s displaying the job listing perfectly as I need.
However, I change some footer elements on my pages depending on what page the user is on. I’m unable to do this for the simple job board default page for some reason. It’s not recognising /jobs/ nor /current-vacancies/.
Here is my code:
…
<?php } elseif ( is_page( array( ‘careers’, ‘current-vacancies’, ‘jobs’ ) ) ) { ?>
<!– JOIN OUR TEAM –>
<section id=”signup” class=”bg-black”>
<div class=”container”>
<div class=”row”>
<div class=”col-sm-8 col-sm-offset-2″>
<h2>RECEIVE CAREER UPDATES</h2>
<p class=”lead”>We’ll inform you of our latest vacancies.</p>
<?php echo do_shortcode(‘[contact-form-7 id=”xxx” title=”Careers Newsletter”]’); ?>
</div><!– end col –>
</div><!– row –>
</div><!– container –>
</section><!– join our team end –>…
I know the array is working because this code shows up on /careers/, however it doesn’t show up on my SJB listings page. Is there something else I should be doing in this case?
Thanks,
Darci
- The topic ‘URL – not recognised with conditional logic’ is closed to new replies.