WordPress.org

Ready to get started?Download WordPress

Forums

YAK for WordPress
Yak and portfolio custom post type (2 posts)

  1. manilLons
    Member
    Posted 1 year ago #

    Hi,

    I would like to add product into my portfolio items, not into the posts. Can you help me please ?

    Thanks !

    http://wordpress.org/extend/plugins/yak-for-wordpress/

  2. cebradesign
    Member
    Posted 1 year ago #

    Hello, manilLons.

    I was also looking for an answer to this and came up with this code:

    // Change CUSTOM_TYPE for your own custom type.
    function custom_yak_meta_box() {
            add_meta_box('yak','YAK Product Details','yak_editproduct','CUSTOM_TYPE','advanced'); // !!!
    } 
    
    // Remove yak box from posts and pages
    function remove_yak_meta_box() {
        remove_meta_box('yak','post','advanced');
        remove_meta_box('yak','page','advanced');
    } 
    
    add_action('admin_menu', 'remove_yak_meta_box');
    add_action('admin_menu', 'custom_yak_meta_box');

    I couldn't find the entire source of this code, just what I found in the yak forum.

    Hope this helps (it did to me!)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic