Support

Account

Home Forums General Issues Posts based on selected taxonomy value

Unread

Posts based on selected taxonomy value

  • desired behaviour

    I have a custom post type with a custom taxonomy related to it. I want a user to be able to select a taxonomy term and then select (3) posts that are tagged with this taxonomy. This is to allow for ‘featured posts’ for these taxonomies.

    attempts

    The relationship field is pretty close to what I want, but it doesn’t seem allow for the user to select the taxonomy.
    I ruled out having conditional relationship fields based on a taxonomy selector since it would mean having to add a field per taxonomy value (which wouldn’t work for additional taxonomies), and the fact that taxonomies can’t be used as conditions.

    I have considered sticky posts, but have a preference for custom fields, since I wish to display the list in one place, with easy ordering, and to have a max number of posts.

    example

    
    taxonomy: TAX
    
    TAX values: A, B, C
    
    A posts: 1, 2, 3
    B posts: 4, 5, 6
    C posts: 7, 8, 9
    
    ---
    
    user selects: A
    presented with: 1, 2, 3
    
    user selects: B
    presented with: 4, 5, 6
    
    etc.
    

    Advice greatly appreciated!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.