Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author danielpataki

    (@danielpataki)

    Hi @circular one,

    It definitely helps me to make the plugin better ?? Can you let me know what version of WP you were using?

    Daniel

    Thread Starter circular one

    (@davidmcnee)

    Hi Daniel

    WordPress v 4 and ACF Pro v 5.0.8.

    Another thing I’d suggest is adding a hard coded “None” option and also allowing a default to be set.

    I also added something like this

    foreach( $GLOBALS['wp_registered_sidebars'] as $sidebar ) {
    	$sbid = $sidebar['id'];
    	if( $sbid != 'sidebar-3' && $sbid != 'sidebar-4') {
    		$selected = $field['value'] == $sbid ? 'selected="selected"' : ''; ?>
    		<option <?php echo $selected; ?> value='<?php echo $sbid; ?>'><?php echo $sidebar['name']; ?></option>
    
    <?php
    } }

    to remove sidebars reserved for footer widget areas in the theme. I think this is something that most users would need to do. I would add a multi select field in the options to select sidebars to be excluded. I can code it up if you like?

    Cheers

    Plugin Author danielpataki

    (@danielpataki)

    Hi There!

    Thanks so much for noticing that! I’m a bit snowed under but I have this on my todo list now. I actually want to put all my ACF plugins on a renewed codebase like I have the google font selector, I’ll get to this as soon as I can!

    Thanks again,

    Daniel

    @circular one

    Please code it up if Author is busy. That’s a feature I’m dying for ??

    XGhozt

    (@xghozt)

    Was looking for this, worked for me. Thank you.

    Plugin Author danielpataki

    (@danielpataki)

    This should now be completely fixed, sorry for the lag ??

    Daniel

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sidebars not listed in select field’ is closed to new replies.