I have a bunch of different menu pages (using custom fields) for a local restaurant and want to show a PDF menu only one one of these pages. I am trying to add a line of code to the template for the Menu pages that only shows up on the page with the slug 'wine-list'.
Here is what I did but it does not work:
<?php if(is_single( 'wine-list' )){
echo '<a href="LINK-TO-PDF.pdf" target="_blank">View our full wine list</a>';
}
else{} ?>