Custom Post Type help
-
hey, so I’m a little confused, I’ve been searching for hours, I’ve made a custom post type for a portfolio section, and I have posts within it called projects, I want to pull the post title/featured image and category its under from the featured category, so the posts will have 2 categories, the featured being the option that displays them on a certain page, and another for a certain part of my design
its an image (which i want to pull the featured from)
with a mouse overlay that will show the Project title, and the categoryso like
Web Company – title
Development – category (also in the featured but don’t want featured being displayedi’ve found this code on the site, and was wondering how i could do it, the slug is project so example
localhost/project/web-company
also i want either 3 of these to loop or 6 if possible.<?php query_posts('cat=7&posts_per_page=3'); if(have_posts()) : while(have_posts()) : the_post(); ?> <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> <h2><?php permalink(); ?></h2> <div class="entry"> <?php $img = get_post_meta($post->ID, 'Featured Thumbnail', true); ?><img src="<?php echo $img; ?>"/><?php the_content('Read More'); ?> </div> </div> <?php endwhile; endif; wp_reset_query(); ?>
The topic ‘Custom Post Type help’ is closed to new replies.