Forum Replies Created

  • What about subfields of Repeater fields?
    Does the key have to be unique for the whole database too?
    Does the name have to be unique inside the group or only within the subfields?

  • The Code from Elliot’s post doesn’t work for me anymore.
    This is what I used in my functions.php file

    add_action("manage_pages_custom_column", "add_columns");
    add_filter("manage_edit-page_columns", "set_column_content");
    function add_columns($columns)
    	$columns = array(
    		'cb'	 	=> '<input type="checkbox" />',
    		'title' 	=> 'Title',
    		'test' 	        => 'Test',
    		'author'	=> 'Author',
    		'date'		=> 'Date',
    	return $columns;
    function set_column_content($column)
    	global $post;
    	if($column == 'test')
    		echo 'test';

    I get the following error message:

    Warning: Invalid argument supplied for foreach() in path_to_my_wordpress_install/wp-admin/includes/class-wp-list-table.php on line 1074

    Can someone please confirm this? I don’t think this is an error due to my local setup though.

  • I’ve had the same issue. This is probably because you haven’t added the field group before trying to get the field.

    please post the (simplified) code where you added the field group so we can validate.

  • I had this problem too when registering the gallery field programatically.
    When I called :


    I got ID’s instead of image arrays.

    The Problem was, that I only registered the fields on the dashboard through checking for:


    before calling:


Viewing 4 posts - 1 through 4 (of 4 total)