jhopson
Forum Replies Created
-
Forum: Themes and Templates
In reply to: widget_recent_entriesHey Tom! Check out this article, helped me edit that specific widget and many more.
Jacob
Forum: Alpha/Beta/RC
In reply to: custom posts type with custom taxonomy wp_queryHey, 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>
Forum: Fixing WordPress
In reply to: Slider using Custom Post Types with Custom field imagessolved! I managed to work for three days on this issue and it finally clicked.
Forum: Fixing WordPress
In reply to: Slider using Custom Post Types with Custom field imagesQuestion: 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?
Forum: Fixing WordPress
In reply to: Slider using Custom Post Types with Custom field imagesUpdate: 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.