The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress code help

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #36421

    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

    if( is_page('home')){
    add_meta_box( 'locationFinder', 'Location Finder', 'cd_meta_box_cb', 'page', 'normal', 'high' );

    I have tried the name of my page template, the title of the page both upper and lower case. Nothing seems to be working. Anyone got any idea?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.