Blog and Portfolio shortcodes doesn’t work as expected:
Example:
- Blog shortcode: I have 3 post categories with ID: 1, 2, 3
According to Moxie’s docs: I created 1 page with this short code: [blog template="blog-image-top" paging="true" category_in="(2,3)"]
- Portfolio shortcode: I have 6 portfolio categories with ID: 4, 5, 6, 7, 8, 9
According to Moxie’s docs: I create 1 page with this short code: [portfolio template="portfolio-static" columns="5" posts_per_page="100" category_in="(5,6)"]
The shortcodes didn’t work as expected. They call ALL the categories of their type. Example:
- Blog shortcode call all 1, 2, 3 categories.
- Portfolio shortcode call all 4,5,6,7,8,9 portfolio categories.
Extra notes:
- It doesn’t work even on a brand new installation.
- It will work if you are trying to call ONE (1) category only. Example of the parameter: cat="(5)"
- If you are trying to call an array (multiple categories), it will call all the categories you have of that post type.
(I’m using category_in
parameter according to the link in Moxie’s documentation: https://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters)
)
Thanks guys!