WordPress.org

Ready to get started?Download WordPress

Forums

How to display one category of a custom post type using shortcode (1 post)

  1. aimeedanger
    Member
    Posted 6 months ago #

    I am using the Hercules theme which uses shortcode extensively to lay out pages and uses custom post types to define portfolio, slider, testimonials, and services. On http://www.thehotboxgallery.com I'm trying to list only the portfolio custom post types with the category of content strategy on the content strategy page (http://thehotboxgallery.com/services/content-strategy/) and the same for all the other services.
    I'm using the shortcode
    [posts_grid type="portfolio" category="content-strategy" columns="4" rows="4" order_by="date" order="DESC" meta="no" isdate="yes" excerpt_count="12" link="yes" link_text="Read More"]
    As you can see, it's spitting out the portfolio posts, but ignoring the category.

Reply

You must log in to post.

About this Topic