Support

Account

Home Forums Backend Issues (wp-admin) How can I filter a posts relationship field by the current category edit screen? Reply To: How can I filter a posts relationship field by the current category edit screen?

  • I think (but it’s only a guess) that the problem is $_GET[‘tag_ID’] is a string value and WP might require this to be a number. Try

    
    $args['category__in'] = intval($_GET['tag_ID']);