php - Only show line of code on a specific page -


I have a group of different menu pages (using custom fields) for a local restaurant and only one PDF menu One of these pages I want to show is trying to add a line of code in the templates for menu pages which only appears on the page with 'Slug' wine-list.

Here's what I have done, but it does not work:

  & lt ?? Php if (is_single ('wine-list')) {echo & lt; A href = "LINK-TO-PDF.pdf" target = "_ blank" & gt; See our complete wine list & lt; / A & gt; '; } And {}? & Gt;  

If

  & lt; Use php if (is_page ('wine-list')) {echo & lt; A href = "LINK-TO-PDF.pdf" target = "_ blank" & gt; See our full wine list & lt; / A & gt; '; } And {}? & Gt;  

Comments

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

import - Python ImportError: No module named wmi -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -