Viewing 1 replies (of 1 total)
  • Plugin Contributor Patrick Jackson

    (@pjackson1972)

    Hi JPWilkinson,

    Are your Testimonials added as custom post types? If so, then we should be able to handle that by using the post_type attribute.

    For example, the Testimonials post type slug for IvyCat’s testimonials plugin is “testimonials”, so a shortcode for listing all of the testimonials would look like

    [ic_add_posts post_type="testimonials"]

    If you need to filter on a testimonial category, then you MAY be able to use the category attribute if the custom post type is actually set up to use the same category used by posts. In that case, the shortcode would look like

    [ic_add_posts post_type="testimonials" category="Category1"]

    It’s likely that your custom post type will actually use a custom taxonomy to group testimonials. As an example, IvyCat’s plugin uses a custom taxonomy called “Testimonial Groups” to group testimonials.

    In this case, you can filter the list by adding 2 attributes that work together: taxonomy, and term. The slug for IvyCat’s Testimonial Groups taxonomy is “testimonial-group”, and the term is the slug of the group that you created. We’ll call it “term1”.

    So, a shortcode listing the term1 testimonial group using IvyCat’s plugin would look like the following.

    [ic_add_posts post_type="testimonials" taxonomy='testimonial-group' term='term1']

    Does any of that help at all? ??

Viewing 1 replies (of 1 total)
  • The topic ‘Listing Testimonials instead of Posts – Listing Custom Post Types’ is closed to new replies.