Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey Tom! Check out this article, helped me edit that specific widget and many more.

    Widget_Recent_Entries

    Jacob

    Hey, thought I would share my limited knowledge and success story in this area! I created a custom post type called Portfolio with an associated custom taxonomy Portfolio-type. Simply put I wanted to create new “categories” for my custom post type but I called them “types”. On each single portfolio page I wanted a section at the bottom that displayed 3 related portfolio items based on the “type”. Here is the code I used, with the help of this forum and about 2 days of learning custom post types, it is beginning to make sense!

    <div class="related-posts">
     <h3 class="widget-title">Related Posts</h3>
    
     <ul>
         <?php
         $query = new WP_Query(array('post_type' => 'portfolio', 'portfolio_type' => get_the_term_list( $post->ID, 'portfolio_type' )));
         while ($query->have_posts()) : $query->the_post();
         ?>
    
      <li>
         <div class="related-thumb"><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail('medium'); ?></a></div>
         <h2><a>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
         <h4><?php echo get_post_meta($post->ID, "Description", true); ?></h4>
         <div class="clear"></div>
      </li>
    
        <?php endwhile; wp_reset_query(); ?>
     </ul>
    
    </div>

    https://focalpoint.themedemo.net/portfolio/waterfalls/

    Thread Starter jhopson

    (@jhopson)

    solved! I managed to work for three days on this issue and it finally clicked.

    Thread Starter jhopson

    (@jhopson)

    Question: The more I think about it, I wonder if I need to use the same loop to control both the slide and the thumbnail. Although the thumbnail then wouldn’t directly “link” to the larger billboard image. It would give the appearance since both would load and slide at the same time. Any thoughts?

    Thread Starter jhopson

    (@jhopson)

    Update: I have managed to get the billboard to show the original ‘billboard’ slide image and all 10 custom field ‘thumbs’.

    It seems that the only problem I am continuing to have is when the slider goes to the next thumbnail, the ‘billboard’ sized image does not display.

    View the site again for better understanding.

Viewing 5 replies - 1 through 5 (of 5 total)