WordPress.org

Ready to get started?Download WordPress

Forums

Portfolio Slideshow
[resolved] media uploader doesn't show in custom posts (3 posts)

  1. tonocarvacho
    Member
    Posted 1 year ago #

    Hi, I have a wordpress theme that has a portfolio section, in here I can add portfolio items just like a post, but the media uploader doesn't show there. What can I do? is there a way to put it there?
    When I create a new post this is the url:
    "/wp-admin/post-new.php"
    And when I create a new portfolio item this is the url:
    "/wp-admin/post-new.php?post_type=portfolio"

    I could create the slide in a new post and then insert the shortcode inside a new portfolio item, but that's not the idea.
    Can anyone help me?
    Thanks!

    http://wordpress.org/extend/plugins/portfolio-slideshow/

  2. tonocarvacho
    Member
    Posted 1 year ago #

    If anyone cares I solved this adding a line of code in the metabox.php file:

    function ps_add_custom_box() {
    		add_meta_box('ps_custom_post_type_uploads', __('Portfolio Slideshow', 'port_slide'), 'ps_custom_post_type_uploads', 'post', 'normal', 'default');
    		add_meta_box('ps_custom_post_type_uploads', __('Portfolio Slideshow', 'port_slide'), 'ps_custom_post_type_uploads', 'page', 'normal', 'default');
    	}

    I added this:
    add_meta_box('ps_custom_post_type_uploads', __('Portfolio Slideshow', 'port_slide'), 'ps_custom_post_type_uploads', 'portfolio', 'normal', 'default');

    I put "portfolio" because is the name of the custom post type

  3. dodotoron@gmail.com
    Member
    Posted 1 year ago #

    thank you for the post tonocarvacho.
    No further question now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic