How to show specific field value based on another field value

Support MB Show Hide How to show specific field value based on another field valueResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9624
    alishaalisha
    Participant

    Hi,

    I have three custom post types one is football_team and others are football_players and football_fixture.
    I have a metabox under football_team CPT with ID recent_players, which contains recent players list.

    I have four metaboxs under football_fixture CPT which contain home team name(ID:home_team),away team name (ID:away_team),home players(ID:home_player),away players(ID:away_player).
    Now my query is: If I select a specific team ,which is published under football_team CPT,under home_team then it will automatically load the recent players from recent_players metabox.

    Is it possible?
    If so then I will give you the codes.
    Thanks in advance.

    #9636
    Anh TranAnh Tran
    Keymaster

    Hi Alisha,

    Let me summarize your question: load a list of players based on the value of a team.

    I think it's not possible, because the list of players need to be queried against the database to get the list of posts. And that should be updated instantly when you change the home team value. Sorry, but I can't find a quick solution for this yet.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.