Support for Envato Buyers Forums OldCar Gallery Feature Image

Viewing 8 reply threads
  • Author
    Posts
    • #4829
      Katef0313
      Member

      For some reason, when I set a feature image, and also include it in the gallery, it doesn’t appear in the gallery. What am I missing?

      http://offthegridchicago.com/

    • #4833

      Hi

      Yes, the featured image will not show up by default, because sometimes, user only need a small featured image on the homepage, so you have to upload the picture twice, then it will show up in the gallery slider.

      Thanks!

    • #8971
      This reply has been marked as private.
      • #8981

        Hi

        You can let me know your WP login details, I will help you change the code in single-portfolio.php file

        Thanks

    • #8988
      This reply has been marked as private.
    • #8992

      Hi

      I found you’ve created a child theme, that’s great. I have changed single-portfolio.php file, so you just copy it from parent theme folder to your child theme folder.

      Thanks

    • #9000
      This reply has been marked as private.
    • #9006

      Maybe I understood you incorrectly, I was thought that you said the portfolio gallery. Now I changed theme-functions.php file, you can backup it.

    • #9649

      Hello, what was the change that you made here? The theme was updated and erased the changes you made. If you just provide the code I can copy/paste it for future reference. Thank you.

    • #9653

      Look at the following codes

      <?php
      if($portfolio_type=="Image"){
        if($portfolio_slider==''){
         if ( $images = get_children(array(
      	  'post_parent' => get_the_ID(),
      	  'post_type' => 'attachment',
      	  'numberposts' => 50,
      	  'order' => 'ASC',
      	  'orderby' => 'menu_order',
      	  'exclude' => get_post_thumbnail_id(),
      	  'post_mime_type' => 'image',)))
      	  {
      ?> 

      I just comment out or delete ‘exclude’ => get_post_thumbnail_id(), as

      <?php
      if($portfolio_type=="Image"){
        if($portfolio_slider==''){
         if ( $images = get_children(array(
      	  'post_parent' => get_the_ID(),
      	  'post_type' => 'attachment',
      	  'numberposts' => 50,
      	  'order' => 'ASC',
      	  'orderby' => 'menu_order',
      	  //'exclude' => get_post_thumbnail_id(),
      	  'post_mime_type' => 'image',)))
      	  {
      ?> 
Viewing 8 reply threads
  • You must be logged in to reply to this topic.