New Landing How can we help? Themeforest Theme Support Dante does DANTE support custom post types?

Viewing 13 posts - 31 through 43 (of 43 total)
  • Posted in: Dante
  • #80026
    msc-val
    Member
    Post count: 71
    This reply has been marked as private.
    #80063
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    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

    #82109
    msc-val
    Member
    Post count: 71

    I’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!

    #82137
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Check /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

    #82140
    msc-val
    Member
    Post count: 71

    Can I add that through the child theme so I don’t have to so it again with each theme template?
    Thank you!

    #82233
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    You’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

    #82326
    msc-val
    Member
    Post count: 71

    How Can I declare the article’s meta box? I must be doing something wrong because it isn’t working for me.
    Thanks!

    #82355
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Here 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

    #82386
    msc-val
    Member
    Post count: 71

    That didn’t work for me. The meta options aren’t showing yet. Am I missing anything?
    My latest code is attached.
    Thanks again

    #82436
    msc-val
    Member
    Post count: 71

    forgot to zip the file. Please see attached.
    Thanks

    #82439
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Try the attached, hope that sorts it!

    – Ed

    #82480
    msc-val
    Member
    Post count: 71

    That 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 🙂

    #82486
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Glad 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

Viewing 13 posts - 31 through 43 (of 43 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register