Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › does DANTE support custom post types?
New Landing › How can we help? › Themeforest Theme Support › Dante › does DANTE support custom post types?
- This topic has 42 replies, 6 voices, and was last updated 9 years by Swift Ideas – Ed.
-
Posted in: Dante
-
June 4, 2014 at 3:21 am #80026This reply has been marked as private.June 4, 2014 at 10:38 am #80063
Thank you!
That’s likely due to the wrap around the items, make sure this is still the same:
/* BLOG ITEMS OUTPUT ================================================== */ $blog_items_output .= '<div class="blog-items-wrap blog-'.$blog_type.' '.$wrap_class.'">'; if ($blog_type == "standard") { $blog_items_output .= '<div class="timeline"></div>'; } if ($blog_type == "masonry" || $blog_type == "masonry-fw") { $blog_items_output .= '<ul class="blog-items row '. $list_class .' clearfix" id="blogGrid">'; } else { $blog_items_output .= '<ul class="blog-items row '. $list_class .' clearfix">'; }
– Ed
June 12, 2014 at 8:28 pm #82109I’ve just realized that the Article ‘meta options’ isn’t showing in the back-end when working on any of the ‘article’ custom post type. It’s showing, of course, fine for both pages and posts.
Would you please point out to me what I should do to fix this.
Thanks!June 13, 2014 at 3:21 am #82137Check /swift-framework/meta-boxes.php, you’ll need to check the ‘pages’ key of each meta box array and add “article” where “post” is used.
– Ed
June 13, 2014 at 4:10 am #82140Can I add that through the child theme so I don’t have to so it again with each theme template?
Thank you!June 13, 2014 at 10:53 am #82233You’d need to include a new version of it in the child theme, and just declare the meta boxes for the new post type. That would be the best way to do it.
– Ed
June 13, 2014 at 1:23 pm #82326How Can I declare the article’s meta box? I must be doing something wrong because it isn’t working for me.
Thanks!June 13, 2014 at 2:27 pm #82355Here is an example of what you would add to the child theme functions.php file:
global $meta_boxes; $meta_boxes[] = array( 'id' => 'page_heading_meta_box', 'title' => __('Page Heading Options', $text_domain), 'pages' => array( 'article' ), 'context' => 'normal', 'fields' => array( // SHOW PAGE TITLE array( 'name' => __('Show page title', $text_domain), // File type: checkbox 'id' => "{$prefix}page_title", 'type' => 'checkbox', 'desc' => __('Show the page title at the top of the page.', $text_domain), 'std' => $default_show_page_heading, ), ) );
– Ed
June 13, 2014 at 3:41 pm #82386That didn’t work for me. The meta options aren’t showing yet. Am I missing anything?
My latest code is attached.
Thanks againJune 14, 2014 at 12:31 am #82436forgot to zip the file. Please see attached.
ThanksJune 14, 2014 at 1:58 am #82439Try the attached, hope that sorts it!
– Ed
June 14, 2014 at 5:42 pm #82480That didn’t work either. I just went ahead and added the ‘article’ CPT to the main meta-boxes.php file. I will do the same with each theme update.
Thank you though for your help. I really appreciate it 🙂June 14, 2014 at 6:44 pm #82486Glad you managed to sort it that way, not sure why the files I sent didn’t work – probably something small but maybe you can figure it out if you spend some time on it!
– Ed
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.