Okay
  Public Ticket #2346001
Add date in portfolio grid
Closed

Comments

  •  2
    romain started the conversation

    Hello

    What file should I modify if I want to add in a portfolio grid the "Hero Project Info" to the thumbnails?

    Thanks !!

  •  2
    romain replied

    Sorry I found the answer : portfolio_section_item.php


  •  1,823
    Support replied

    ok Romain, you are pretty good with coding.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  2
    romain replied

    Hmm, I found a solution, I can show the "Hero Project Info" from the post on the thumbnail of the portfolio grid : you can test here :

    https://www.jeanyves-leloup.fr/wp/curator-art-sound-design/

    But after clicking, there is the image animation to full screen, and then a flickering 1 or 2 seconds with image from the next portfolio item... and after go back to good image.

    I added the a <php> request and the <h5> in portfolio_section_item.php, like that :

    <div class="item-caption">
        <h4 class="item-cat"><?php echo wp_kses_post( $bauman_item_categories ); ?></h4>
        <h2 class="item-title"><?php the_title(); ?></h2>
        <?php $bauman_hero_properties = bauman_get_hero_properties( get_post_type(get_the_ID()) ); ?>
        <h5 class="item-info-date"><?php echo wp_kses_post($bauman_hero_properties->project_info); ?></h5>
     </div>

    My php seems to be the problem for that image flickering :

     <?php $bauman_hero_properties = bauman_get_hero_properties( get_post_type(get_the_ID()) ); ?>
    

    Have you got a tip ?

    Thanks !


  •  1,823
    Support replied

    Hi Romain

    I don't think that's the problem it's either a portfolio item that had no hero image assigned or it is in draft state, there is gap between portfolio item images. Can you check?

    if you can send us wp admin access if you don't realize what is the problem. Maybe it's a bug. we need to check.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •   romain replied privately
  •  1,823
    Support replied

    Romain, I fixed it, instead of getting the hero properties just to read the project info I replaced it with a call to get the property directly with:

    bauman_get_post_meta( BAUMAN_THEME_OPTIONS, get_the_ID(), 'bauman-opt-portfolio-hero-project-info' )

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  2
    romain replied

    You are so wonderfull !!!

    Many thanks !