WordPress.org

Ready to get started?Download WordPress

Forums

Making specific custom post type items into taxonomy terms (3 posts)

  1. rebekahford
    Member
    Posted 2 years ago #

    Hello

    I'm using WordPress to make a site that has 3 original stories. Each one of these stories is a custom post type item. I have another custom post type called scripts. In there will be lots of scripts based on any one of the 3 original story items. What I want o be able to do is write a query so that each script page will return the script title and the script itself, the author of the script which is easy but also will return a direct link to the original story to was based on. Obviously if I use a taxonomy term it will return an archive list of all of the related scripts and the script page it self rather than JUST the script page. I have found an interesting site explaining how to merge the slug names for the taxonomy and the custom posts type item http://justintadlock.com/archives/2010/08/20/linking-terms-to-a-specific-post but I wondered if the was a simple non-plugin method other than this that would handle this relationship easier and this was written a year ago so maybe there's an existing core solution. In an ideal world I could have a meta box in the admin area that I would look like the taxonomy box but was a choice of the 3 posts instead. Any ideas?

  2. rebekahford
    Member
    Posted 2 years ago #

    Sorry! That should read "obviously if I use a taxonomy term link query it will return an archive list of all the scripts related to that story and the story page itself rather than just a link to that original story item"

  3. rebekahford
    Member
    Posted 2 years ago #

    I have fixed this using the excellent advanced custom fields plugin which I was already using.

Topic Closed

This topic has been closed to new replies.

About this Topic