WordPress.org

Ready to get started?Download WordPress

Forums

List custom post types via shortcode (4 posts)

  1. betadog
    Member
    Posted 3 years ago #

    I have created my first custom post type to list all products of my client. I've also added a corresponding custom category.

    I would now like to list all products of a certain category on a page - preferably via a shortcode. I am kind of stuck here, any pointers or tips? Is there a built in shortcode for this? Do I need a plugin? Do I need to code it into the template instead?

  2. James Collins
    Member
    Posted 3 years ago #

    Did you end up finding a way to do this?

    I'd like to be able to do the same thing without having to create actual template files in my theme's directory.

  3. betadog
    Member
    Posted 3 years ago #

    Let me check and get back to you.

  4. betadog
    Member
    Posted 3 years ago #

    I've ended up taking a different approach after I've read this great tutorial: http://net.tutsplus.com/tutorials/wordpress/introducing-wordpress-3-custom-taxonomies/

    I've created a taxonomy.php that displays all of my custom post types of a certain category.

Topic Closed

This topic has been closed to new replies.

About this Topic