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

  1. tonocarvacho
    Posted 3 years 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:
    And when I create a new portfolio item this is the url:

    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?


  2. tonocarvacho
    Posted 3 years 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
    Posted 3 years 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