Tagged: template
- This topic has 5 replies, 2 voices, and was last updated 6 years, 4 months ago by
Steve.
-
AuthorPosts
-
-
September 19, 2015 at 6:44 am #4362
bows3rMemberHello,
I have a problem. I want to display metaboxes on page edit on a certain template only. Let’s say that I have a template called page-templates/front-page.php. Then I have a piklist metabox that works fine with this code:
/*
Title: Front Page Info Boxes:
Description: The four info boxes in the front page
Post Type: page
Order: 2
*/But when I try this it won’t display the metaboxes:
/*
Title: Front Page Info Boxes:
Description: The four info boxes in the front page
Post Type: page
Template: page-templates/front-page
Order: 2
*/The page I’m editing has been assigned to use front-page template and it is saved.
This is what the page edit looks like (other metabox is not using the “Template: page-templates/front-page tag”Why isn’t it working?
Yours,
Mika
Attachments:
You must be logged in to view attached files. -
September 19, 2015 at 7:45 am #4364
-
September 19, 2015 at 9:02 am #4366
bows3rMemberYes, the file is on page-templates folder.
-
September 19, 2015 at 12:11 pm #4367
SteveKeymasterCan you zip up your theme and email to [email protected]? We can help you faster if we have access to your code.
-
September 19, 2015 at 4:28 pm #4368
bows3rMemberSent you the theme zipped.
-
September 21, 2015 at 2:45 pm #4375
SteveKeymasterResolving this issue after discussing with you.
Your code works if you remove the folder:
Template: front-page, HOWEVER, this is really a bug. In the next version of Piklist your original code will work:Template: page-templates/front-page
-
-
AuthorPosts
- The topic ‘Meta-boxes for template’ is closed to new replies.