Title: emangham's Replies | WordPress.org

---

# emangham

  [  ](https://wordpress.org/support/users/emangham/)

 *   [Profile](https://wordpress.org/support/users/emangham/)
 *   [Topics Started](https://wordpress.org/support/users/emangham/topics/)
 *   [Replies Created](https://wordpress.org/support/users/emangham/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/emangham/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/emangham/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/emangham/engagements/)
 *   [Favorites](https://wordpress.org/support/users/emangham/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/users/emangham/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/emangham/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/emangham/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Square] Digital wallets issue!](https://wordpress.org/support/topic/digital-wallets-issue/)
 *  [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/digital-wallets-issue/#post-15447708)
 * I am having the same issues!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connector for Gravity Forms and Google Sheets] Clone sheet for every submission](https://wordpress.org/support/topic/clone-sheet-for-every-submission/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/clone-sheet-for-every-submission/#post-14461289)
 * Thank you for confirming!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Permalink Manager Lite] wp_insert_post permalink issue](https://wordpress.org/support/topic/wp_insert_post-permalink-issue/)
 *  [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp_insert_post-permalink-issue/#post-13727001)
 * [@mbis](https://wordpress.org/support/users/mbis/), you legend – thank you!
 * Best,
    Elliott
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Permalink Manager Lite] wp_insert_post permalink issue](https://wordpress.org/support/topic/wp_insert_post-permalink-issue/)
 *  [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp_insert_post-permalink-issue/#post-13726912)
 * Hey [@mbis](https://wordpress.org/support/users/mbis/), please can you include
   this in a release? It’s still stopping the correct URL from being executed in
   the loop on line 745, which is causing issues. Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields: Extended] Featured Image not changing](https://wordpress.org/support/topic/featured-image-not-changing/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/featured-image-not-changing/#post-12623736)
 * Hey [@hwk-fr](https://wordpress.org/support/users/hwk-fr/),
 * Thanks for the speedy response!
 * I just checked and you are absolutely right, looks like a field group that was
   cloned in was causing the issue.
 * Appreciate the help – and also the awesome plugin!
 * Cheers,
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] using URL parameters to filter products by category and tag](https://wordpress.org/support/topic/using-url-parameters-to-filter-products-by-category-and-tag/)
 *  [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/using-url-parameters-to-filter-products-by-category-and-tag/#post-12360936)
 * [@ozanyilmaz2017](https://wordpress.org/support/users/ozanyilmaz2017/) (or anybody)
   is it possible to do the same thing with clean URLs? So instead of ugly parameters
   can it use a clean pretty slug structure?
 * I ask, for SEO purposes as Google does not like params unlike URLs.
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor] Undefined variable when displaying “Recover Password” form](https://wordpress.org/support/topic/undefined-variable-when-displaying-recover-password-form/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/undefined-variable-when-displaying-recover-password-form/#post-12359666)
 * Hi Gabriel,
 * Thanks for getting back to me so promptly.
 * I have just tested outputting it via `the_content()` and this appears to display
   the exact same issue.
 * I just noticed I didn’t include the line where the error is found within the 
   plugin – this is line 410.
 * `Notice: Undefined variable: password_email_sent in /app/public/wp-content/plugins/
   profile-builder/front-end/recover.php on line 410`
 * Any suggestions or potential fix?
 * Thank you and indest regards,
    Elliott
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields : CPT Options Pages] Multi-site doesn’t work (“No Custom Post Types found”)](https://wordpress.org/support/topic/multi-site-doesnt-work-no-custom-post-types-found/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/multi-site-doesnt-work-no-custom-post-types-found/#post-12057304)
 * THIS CAN BE CLOSED!
 * It was me being stupid, the CPT was not public…
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Forms for ACF] Prefill a ‘Repeater’ Field](https://wordpress.org/support/topic/prefill-a-repeater-field/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/prefill-a-repeater-field/#post-11962556)
 * You are a legend Phil, thank you for the guide.
 * Best,
    Elliott
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Glance That] [REQUEST]: Save settings for ‘All Users’](https://wordpress.org/support/topic/request-save-settings-for-all-users/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/request-save-settings-for-all-users/#post-9295403)
 * [@uamv](https://wordpress.org/support/users/uamv/),
 * I love it! Thanks so much for listening to my feedback!
 * 5/5!
 * Best,
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Activity Log] Annoying Dashboard widget/box for Solwin news](https://wordpress.org/support/topic/annoying-dashboard-widgetbox-for-solwin-news/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/annoying-dashboard-widgetbox-for-solwin-news/#post-9065559)
 * Hi [@sanjaydabhoya](https://wordpress.org/support/users/sanjaydabhoya/),
 * Thanks for your response, however I agree with everything [@wordpress911](https://wordpress.org/support/users/wordpress911/)
   stated.
 * The Dashboard is valuable admin real-estate and should be reserved for absolute
   essentials – ‘Solwin News’ not being one of them whatsoever.
 * I totally understand advertising a premium version – but please consider removing
   the Dashboard Widget and instead advertise somewhere only developers would see,
   as opposed to admins (like clients) who just want a simple, user experience. 
   OR AT LEAST just give a settings option like [@wordpress911](https://wordpress.org/support/users/wordpress911/)
   suggests.
 * What would be MUCH more useful with the Dashboard real-estate, is to use the 
   widget to display quick stats like recent activity… also with a show/hide option,
   obviously.
 * Since I posted my original topic, I have had to uninstall the plugin on dozens
   of sites as it is confusing clients. I’d love to be able to use it again.
 * Kind regards,
    -  This reply was modified 9 years, 3 months ago by [emangham](https://wordpress.org/support/users/emangham/).
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Glance That] Amazing](https://wordpress.org/support/topic/amazing-1412/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/amazing-1412/#post-9065530)
 * Thanks so much [@uamv](https://wordpress.org/support/users/uamv/), I have updated
   to five stars! Really appreciate you considering and implementing my suggestions.
 * I’ll hold off with label modifications until you’ve added the single filter :-)!
 * Thanks,
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Glance That] Amazing](https://wordpress.org/support/topic/amazing-1412/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/amazing-1412/#post-9055798)
 * Hi [@uamv](https://wordpress.org/support/users/uamv/),
 * Thanks so much for listening to my feedback!
 * I love the visibility option, that makes it much cleaner 🙂
 * How do I use filters to modify labels?
 * And I’ve noticed a small issue with the grid layout (see image below):
 * I’ll be sure to update my review to ★★★★★
 * Thanks again!
 * Kind regards,
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Import and export users and customers] Fatal error](https://wordpress.org/support/topic/fatal-error-2496/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-2496/#post-8921159)
 * [@carazo](https://wordpress.org/support/users/carazo/),
 * Hi – yes I have BuddyPress…
 * Before I upload (on the plugin page) I get this error:
 *     ```
       WordPress database error: [Table 'project-name.g' doesn't exist]
       SELECT DISTINCT g.id FROM g ORDER BY g.group_order ASC
       ```
   
 * Note: `project-name` before `.g.` in the above error is the name of the database…
 * Then once I attempt to upload my CSV fails with this error:
 *     ```
       Fatal error: Class 'BP_XProfile_Group' not found in [theme-location]/wp-content/plugins/import-users-from-csv-with-meta/importer.php on line 26
       ```
   
 * Here is a screenshot: [http://s000.tinyupload.com/index.php?file_id=15464400509382928677](https://wordpress.org/support/users/emangham/replies/?output_format=md)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Force Login] Redirect doesn’t work (‘my_forcelogin_redirect’)](https://wordpress.org/support/topic/redirect-doesnt-work-my_forcelogin_redirect/)
 *  Thread Starter [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/redirect-doesnt-work-my_forcelogin_redirect/#post-8921057)
 * Managed to sort this, so I’ll post the answer below.
 * The following code does the following (in order, commented) – with the help of
   Force Login:
    - Disable default WordPress login
    - Change default WordPress login URL
    - Redirect user once Logged In
    - Whitelist specified URLs/pages
 *     ```
       	/**
       	* Disable default WordPress login
       	**/
       	function custom_wp_redirect_admin_locations() {
       	    global $wp_rewrite;
       	    if ( ! ( is_404() && $wp_rewrite->using_permalinks() ) )
       	        return;
   
       	    $admins = array(
       	        home_url( 'wp-admin', 'relative' ),
       	        home_url( 'dashboard', 'relative' ),
       	        home_url( 'admin', 'relative' ),
       	        site_url( 'dashboard', 'relative' ),
       	        site_url( 'admin', 'relative' ),
       	    );
       	    if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $admins ) ) {
       	        wp_redirect( admin_url() );
       	        exit;
       	    }
   
       	    $logins = array(
       	        home_url( 'wp-login.php', 'relative' )
       	    );
       	    if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $logins ) ) {
       	        wp_redirect( site_url( 'wp-login.php', 'login' ) );
       	        exit;
       	    }
       	}
   
       	function remove_default_login_redirect() {
       	    remove_action('template_redirect', 'wp_redirect_admin_locations', 1000);
       	    add_action( 'template_redirect', 'custom_wp_redirect_admin_locations', 1000 );
       	}
   
       	add_action('init','remove_default_login_redirect');
   
       	/**
       	* Change default WordPress login URL
       	**/
       	function login_redirect() {
       		global $pagenow;
       		if ($pagenow == 'wp-login.php' && empty($_POST)) {
       			wp_redirect('/user-login/');
       			exit();
       		}
       	}
       	add_action('init','login_redirect');
   
           /**
           * Redirect user once Logged In
           **/
       	function redirect_login_page() {
       		$login_page  = home_url( '/login/' );
       		$page_viewed = basename($_SERVER['REQUEST_URI']);
       		if ($page_viewed == "wp-login.php" && $_SERVER['REQUEST_METHOD'] == 'GET') {
       			wp_redirect($login_page);
       			exit;
       		}
       	}
       	add_action('init','redirect_login_page');
   
       	/**
       	* Whitelist specified URLs/pages
       	**/
       	function my_forcelogin_whitelist( $whitelist ) {
       		$whitelist[] = site_url( '/user-login/' );
       		$whitelist[] = site_url( '/reset-password/' );
       		return $whitelist;
       	}
       	add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
       ```
   
 * Thanks!

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/users/emangham/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/emangham/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/emangham/replies/page/2/?output_format=md)