Support

Account

Home Forums Backend Issues (wp-admin) Adding field to options page

Solved

Adding field to options page

  • Which location should I use to create a field in an options page?

    I’ve tried this, unsuccesfully:

    'location' => array (
    	array (
    		array (
    			'param' => 'post_type',
    			'operator' => '==',
    			'value' => 'option',
    		),
    	),
    ),
  • It’s going to look something like

    
    'location' => array (
    	array (
    		array (
    			'param' => 'options_page',
    			'operator' => '==',
    			'value' => 'options-page-slug',
    		),
    	),
    ),
    

    You can get information like this by creating a field group with the settings you’d like and then exporting it to PHP to see how those settings need to appear.

  • Yes! Thank you very much for de code and the trick.

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

The topic ‘Adding field to options page’ is closed to new replies.