zvdh
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Forms for ACF] Pre-fill field with usernameHi
Sorry for the late reply. The issue I have with the user field is that you can’t select any of the users. With the function you provided it’s possible to pre-fill the field, but I can’t select any other users (they just don’t show up).
I haven’t dug any further to a possible solution or problem in the configuration, since it’s not necessary for us: this is the exact functionality we needed.
Forum: Plugins
In reply to: [Advanced Forms for ACF] Pre-fill field with usernameHi Fabian!
Thank you for the reply! I managed to get it to work, but I still have some feedback for you.
- Slight error in the code: it should be
function prefill_form_field (...)instead offunction filter_args(...)π - The field ‘user’ doesn’t seem to work that good in Advanced Forms. I can’t see any user. It is however possible to prefill the field with the current user, so that’s all good!
The code I used, should someone else find it usefull:
function prefill_form_field( $value, $field, $form, $args ) { $user = wp_get_current_user(); $user = $user -> ID; $field ['value']= $user; //set user to current user return $field; } add_filter( 'af/field/prefill_value', 'prefill_form_field', 10, 4 ); add_filter( 'af/field/prefill_value/name=user', 'prefill_form_field', 10, 4 ); add_filter( 'af/field/prefill_value/key=field_5d0fd06363803', 'prefill_form_field', 10, 4 );Forum: Plugins
In reply to: [Staffer] Clickable photos??Not the developer, but I’ve been playing with the plugin as well. If you assign a featured image to the contact, the picture displays as clickable.
Forum: Plugins
In reply to: [Staffer] Grid Layout – staff per rowI’m not the developer, but I was fiddling about with it as well. To achieve this just add the following to your CSS:
.staffer-archive-grid li { width:49%; }Forum: Themes and Templates
In reply to: [Theme: Twenty Sixteen] Move menu bar in a modified childI did it like this, the menu folds up on mobile nicely:
<header id="masthead" class="site-header" role="banner"> <?php if ( get_header_image() ) : ?> <?php /** * Filter the default twentysixteen custom header sizes attribute. * * @since Twenty Sixteen 1.0 * * @param string $custom_header_sizes sizes attribute * for Custom Header. Default '(max-width: 709px) 85vw, * (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px'. */ $custom_header_sizes = apply_filters( 'twentysixteen_custom_header_sizes', '(max-width: 709px) 85vw, (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px' ); ?> <div class="header-image"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> <img src="<?php header_image(); ?>" srcset="<?php echo esc_attr( wp_get_attachment_image_srcset( get_custom_header()->attachment_id ) ); ?>" sizes="<?php echo esc_attr( $custom_header_sizes ); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"> </a> </div><!-- .header-image --> <?php endif; // End header image check. ?> <div class="site-header-main"> <?php if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) ) : ?> <button id="menu-toggle" class="menu-toggle"><?php _e( 'Menu', 'twentysixteen' ); ?></button> <div id="site-header-menu" class="site-header-menu"> <?php if ( has_nav_menu( 'primary' ) ) : ?> <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'twentysixteen' ); ?>"> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'primary-menu', ) ); ?> </nav><!-- .main-navigation --> <?php endif; ?> </div><!-- .site-header-menu --> <?php endif; ?> </div><!-- .site-header-main --> </header><!-- .site-header -->Forum: Plugins
In reply to: [WP STAGING - WordPress Backup, Restore & Migration] Push to ProductionLikewise, very interested in this option!
Forum: Plugins
In reply to: [BP Group Hierarchy] Possible theme conflictI hadn’t even thought of this – thanks David!
Forum: Plugins
In reply to: [BP Group Hierarchy] Possible theme conflictNot a problem!
Just remember to update this specific file should you install an update of BP Group Hierarchy, as this probably overwrites this file again.I’ve had the same problem, with Frisco-for-buddypress and BP Group Hierarchy, but found that it could be fixed with only one adjusted file.
It seems that BP Group Hierarchy overrides the theme completely on the groups-page, as this is necessary to display the child-groups.
If you look for
/wp-content/plugins/bp-group-hierarchy/templates/tree/index.phpand replace the code with the one in this pastebin, it should be fixed completely.It worked for me, feel free to give additional feedback!
Forum: Plugins
In reply to: [BP Group Hierarchy] Possible theme conflictI’ve had the same problem, with Frisco-for-buddypress and BP Group Hierarchy, but found that it could be fixed with only one adjusted file.
It is indeed correct that BP Group Hierarchy overrides the theme completely, as this is necessary to display the child-groups.
If you look for
/wp-content/plugins/bp-group-hierarchy/templates/tree/index.phpand replace the code with the one in this pastebin, it should be fixed completely.It worked for me, feel free to give additional feedback!
Since the update to version 0.7.2, neither colorbox or lightbox works on my website. Highslide JS works, but I’m not too keen on that one.
Any solutions? π
- Slight error in the code: it should be