Home Forums Themes Support Formota Adding roles

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #6773
    artpimentel
    Supported

    I would like to add producers besides directors and actors, but just see the options to add the lats two roles.

    How can I add producers to include them in thr grid?

    Do I have to create those profiles as a regular publication?

    Thanks 🙂

    #6775

    Hi,
    Thanks for contacting us and choosing our product!
    To create new custom posttype please follow this topic:

    How to create WordPress Custom Post type and display template

    How to manage Haru Posttypes and Shortcodes in our product?

    How to add new Metabox to Circle Single Video, Film, Actor or Director


    Hope this helps!

    ****
    Regards,
    HaruTheme

    #6787
    artpimentel
    Supported

    Hello,

    Followed all steps, but if I modify the file via ftp it shows a 500 error at the site. If I do it through pligin editor in WP ir does never save the init indicationd since the plugin is active.

    Ant advice?

    Thanks in advance.

    #6790

    Hi,
    Please make sure you insert correct the code.
    If you missing something it will cause 500 error.

    ***
    Regards,
    HaruTheme

    #6791
    artpimentel
    Supported

    You are right! Corected an error and al is great!

    Thanks!

    #6794

    Thanks for your feedback!
    Please use child theme to do customize:

    How to customize WordPress theme using Child theme


    Hope this helps!

    ****
    Regards,
    HaruTheme

    #6795
    artpimentel
    Supported

    Hello,

    Well, it seems that I need to go further into this. I was able to create the producers role and I have it listed at my dashboard. But when I publish a page, it appears empty. How do I customize producer’s page content?

    Thank you in advance!

    #6797
    artpimentel
    Supported

    Now: HELP!!

    I went into {yourwebroot}/wp-content/themes/xxx/plugins/haru-xxx-core/templates/posttypes

    Found folders fot actor & directo containing php files like gripd.php, masonry & style.

    I duplicate the folder and change al to productor (producer). As result, now I have all pages on site blank. When I see that, I deleted the folder I have created, but the damage was done and now I don’t know how to revert it.

    Should I rebuild whole site?? 🙁

    Will leave it that way until I see your comment.

    THanks again!

    #6799

    Hi,
    1. If you want to display archive and single page you should follow this topic at 2. Display Custom Posttype: https://harutheme.com/forums/topic/how-to-create-wordpress-custom-post-type-and-display-template/
    2. This is topic for add shortcode: https://harutheme.com/forums/topic/how-to-manage-haru-posttypes-and-shortcodes-in-our-product/
    3. The blank page appear that’s mean you have wrong syntax. You should customize your site at Localhost first by backup it use this plugin: https://wordpress.org/plugins/duplicator/ and use MAMP or XAMPP to install Localhost.
    4. You can extract our theme package downloaded from ThemeForest then you will have Haru Formota Core orginal plugin: https://harutheme.com/forums/topic/import-demo-manual-wordpress-theme/
    Hope this helps!

    ****
    Regards,
    HaruTheme

    #6800
    artpimentel
    Supported

    So I need to delete the pkugin and reintall it back?

    Thanks

    #6804

    Hi,
    Please backup (copy) all your custom works first.
    Then you can reinstall and copy it into new files again.
    However as we noticed above.
    Please customize your site on another server (not live site)

    ****
    Regards,
    HaruTheme

    #6849
    artpimentel
    Supported

    I have done everyting and have the site back. But now I am at the begining again. I can go as far as create the custom post type for productor (producer), but not to replicate he template in order to include the info as the director template. Any step by step explanation??

    Best regards.

    Arturo

    #6862

    Hi,
    We can’t have tutorial details for template display of new custom posttypes because you can add any meta box fields in there.
    1. However if you notice on single actor template you can get data like this:

    // Docs: https://metabox.io/docs/get-meta-value/
                $actor_info              = get_post_meta( get_the_ID(), 'haru_actor' . '_info', true );
                $actor_award             = get_post_meta( get_the_ID(), 'haru_actor' . '_award', true );
                $actor_social            = get_post_meta( get_the_ID(), 'haru_actor' . '_social', true );
                $actor_film              = get_post_meta( get_the_ID(), 'haru_actor' . '_filmography', true );
                $actor_video             = get_post_meta( get_the_ID(), 'haru_actor' . '_video', false );
                $actor_testimonial       = get_post_meta( get_the_ID(), 'haru_actor' . '_testimonial', true );
                
                $actor_gallery_images    = get_post_meta( get_the_ID(), 'haru_actor' . '_gallery_images', false ); // Array

    The can use this code to display (Example):

    <?php foreach( $actor_info as $info ) : ?>
                                    <div class="actor-info row">
                                        <span class="col-md-6 info-label"><?php echo esc_html( $info['0'] ); ?></span>
                                        <span class="col-md-6 info-value"><?php echo wp_kses_post( $info['1'] ); ?></span>
                                    </div>
                                    <?php endforeach; ?>

    You can see in wp-content/themes/formota/templates/single/content-haru_actor.php like this:
    https://prnt.sc/uqo9i8
    2. If you want to use shortcode to display you need add it follow this topic: https://harutheme.com/forums/topic/how-to-manage-haru-posttypes-and-shortcodes-in-our-product/
    wp-content/plugins/haru-formota-core/includes/shortcode/posttypes/actor/actor.php you can see it https://prnt.sc/uqodvu.
    and templates display of this shortcode in: wp-content/plugins/haru-formota-core/templates/posttypes/actor/grid.php https://prnt.sc/uqoeaw
    Hope this helps!

    ****
    Regards,
    HaruTheme

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.