I have set up my portfolio on the home page of my website and Iam trying to push project types to separate pages using the DISPLAY_POST shortcode, this functionality works fine if I create a blog post and link it, for example: [display_posts category=”5″ order=”DESC” orderby=”date” post_type=”post”] works fine.
But when I try and do it for a portfolio item, for example: [display_posts category=”4″ order=”DESC” orderby=”date” post_type=”project”] nothing shows up on the page.
The reason why the shortcode did not filter the projects is because it did not have such a capability – the “category” parameter refers strictly to the “category” taxonomy, which only relates to classic posts. Once you’ve mentioned this, I thought it might be a good addition to the shortcode, so I’ve introduced filtering by type as well; I will include the feature into the next theme update (version 1.6), and before it’s out you can download this archive, unzip it, and upload the resulting files into the following folder inside your WP install:
replacing the existing files. After that, you should be able to use “type=XX” parameter in the shortcode, where XX is the ID of the needed type. Please let me know if it works for you!