I'm looking to use Custom Post Types to create a simplified process for key individuals to add information to a webpage. Let's use a Job Posting as an example, with custom fields for Job Title, Closing Date, etc.
However, I also have regular posts across a number of categories.
I would like to have all posts listed together. So for the home page where it shows the last 3 posts, that includes those in custom post types (there will be several).
I would also like to have these custom posts automatically set to specific categories, but these categories should be a part of the regular post types. If "Job Postings" and "Press Releases" are two categories under my regular post menu, I would also like a CPT of "Job_Posting" to be set to "Job Postings" automatically.
This is for situations where we need to post information that would belong to a job posting category but wouldn't necessarily be an actual postings with the required fields set up in that CPT.
Am I going about this the wrong way entirely?
I've changed my WP_Query to the following, and it still won't show CPT:
<ul class="home-content-recent"> <?php $args = array( 'post_type' => 'any', ); $recent = new WP_Query($args); $recent->query('showposts=3'); if($recent->have_posts()) : while($recent->have_posts()): $recent->the_post();?> <li> <a class="recent-title" href="<?php the_permalink()?>"><?php the_title()?></a> <div class="post-meta-data"> <p class="recent-time"><?php the_time('l, F j, Y')?></p> <p class="recent-category"><?php the_category(', '); ?></p> <p class="recent-commentcount"><?php comments_number( 'No Comments', '1 Comment', '% Comments' ); ?></p> </div> <div class="recent-excerpt"><?php the_excerpt()?></div> </li> <?php endwhile ?> <?php else : ?> <?php endif ?> </ul>