by Matteo Conti on WordPress.org
Effortlessly create a custom post type to organize projects with custom categories and flexible URL settings, perfect for WordPress theme developers.
“Prjcts” is the ideal plugin for WordPress theme developers who want to integrate a simple custom post type to organize and showcase projects. It’s perfect for implementing portfolios in themes designed for creatives, photographers, artists, and more.
There are several ways to display Custom Post Types (CPT) and custom taxonomies in a WordPress theme. Here are some basic examples:
You can use WP_Query to create custom queries anywhere in your theme. For example, if you want to display posts from a CPT on a specific page, you can create a new query:
'prjcts',
'posts_per_page' => 10,
);
$the_query = new WP_Query($args);
if ($the_query->have_posts()) :
while ($the_query->have_posts()) : $the_query->the_post();
// YOUR MARKUP HERE
endwhile;
wp_reset_postdata();
else :
echo 'No posts found';
endif;
?>