Forums

WordPress code help

I am working on adding a custom meta box to a page. I got it displaying fine. My problem is that I only want the meta box to display on a particular page which just happens to be a template. I tried is_page_template() and is_page but everytime I add the conditional, the meta box doesn’t show. I am doing it like so

Tips

Categories

We have a pretty good* newsletter.

Email Address

CSS-Tricks* is created, written by, and maintained by Chris Coyier and a team of swell people. It is built on WordPress, hosted by Media Temple, and the assets are served by MaxCDN. The fonts are Source Sans Pro and Source Code Pro. It is made possible through sponsorships from products and services we like.