Custom Fields
Support Meta Box Show Hide (Javascript) How to show specific field value based on another field value

  • Creator
  • #9624
    Resolved alisha


    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.

Viewing 1 replies (of 1 total)
  • Author
  • #9636
    Anh Tran

    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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.