WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Display post content within related post (3 posts)

  1. vicksterm
    Member
    Posted 2 years ago #

    I've created two custom post types: Clients and Testimonials. I'd like to display the testimonial from Client A on the post for Client A, but also include it in a page of "All Testimonials"

    I'm new to WordPress and thought there might be some way to "relate" two custom post types, but I also might be making this a lot harder than it needs to be. I looked for a plugin that would display the testimonial in the sidebar (perhaps a custom field?) and found Widget Logic, but I don't know how to pull the testimonial content into the widget.

    Any help would be appreciated. I've searched for answers but I don't think I know the right language to use because I'm not finding much and I think this is a fairly common scenario.

  2. Digest WP
    Member
    Posted 2 years ago #

    Hello,

    You could create a custom template for the page to show both categories. Then just pull in those two custom post types.

    Maybe this tutorial will help you.

    http://new2wp.com/noob/show-multiple-custom-post-type-posts-query-sidebar/

  3. vicksterm
    Member
    Posted 1 year ago #

    Sorry for the delayed response, but I wanted to thank you so much for the suggestion and tutorial link. It's a bit more complicated than I hoped, but it looks like it should do exactly what I want. I'll give it a go!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.