Title: edmin's Replies | WordPress.org

---

# edmin

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

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

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Download Monitor] %%site_url_token%% not being replaced](https://wordpress.org/support/topic/site_url_token-not-being-replaced/)
 *  Thread Starter [edmin](https://wordpress.org/support/users/edmin/)
 * (@edmin)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/site_url_token-not-being-replaced/#post-6957363)
 * I have since figured out what was causing this – it is an incompatibility with
   a plugin called ‘WordPress iHostname Migration’ which is what was replacing the
   hostname with %%site_url_token%% and failing to set it back again. Once disabled,
   everything works fine!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Custom post type – highlighting current menu item](https://wordpress.org/support/topic/custom-post-type-highlighting-current-menu-item/)
 *  [edmin](https://wordpress.org/support/users/edmin/)
 * (@edmin)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-highlighting-current-menu-item/#post-4238415)
 * The above appears a little overcomplicated; a slimmer version would be:
 *     ```
       // highlight active custom post page in nav
       add_filter( 'nav_menu_css_class', 'namespace_menu_classes', 10, 2 );
       function namespace_menu_classes( $classes , $item ){
       	if ( get_post_type() == 'YOUR_CUSTOM_POST_TYPE' ) {
       		// remove unwanted classes if found
       		$classes = str_replace( 'current_page_parent', '', $classes );
       		// find the url you want and add the class you want
       		if ( $item->url == '/PATH_TO_YOUR_ARCHIVE' ) {
       			$classes = str_replace( 'menu-item', 'menu-item current_page_parent', $classes );
       		}
       	}
       	return $classes;
       }
       ```
   
 * Once you change YOUR_CUSTOM_POST_TYPE to the machine name of your custom post
   name, this should add the class ‘current_page_parent’ to your active custom post
   menu item, and remove the same class from any other menu items.
 * Also, change ‘/PATH_TO_YOUR_ARCHIVE’ to the actual path of your archive.
 * For example, in the below I have a custom post type called ‘Children’s Books’,
   and set up the post type like so (in functions.php):
 *     ```
       add_action( 'init', 'create_post_type' );
       function create_post_type() {
       	register_post_type( 'childrens_books',
       		array(
       			'labels' => array(
       				'name' => __( 'Children's Books' ),
       				'singular_name' => __( 'Children's Book' )
       			),
       		'public' => true,
       		'has_archive' => true,
       		'rewrite' => array('slug' => 'childrens-books'),
       		)
       	);
       }
       ```
   
 * In order for the menu items to highlight properly I would use the following (
   again, in functions.php):
 *     ```
       // highlight active custom post page in nav
       add_filter( 'nav_menu_css_class', 'namespace_menu_classes', 10, 2 );
       function namespace_menu_classes( $classes , $item ){
       	if ( get_post_type() == 'childrens_books' ) {
       		// remove unwanted classes if found
       		$classes = str_replace( 'current_page_parent', '', $classes );
       		// find the url you want and add the class you want
       		if ( $item->url == '/childrens-books' ) {
       			$classes = str_replace( 'menu-item', 'menu-item current_page_parent', $classes );
       		}
       	}
       	return $classes;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] posts_per_page not having any effect](https://wordpress.org/support/topic/posts_per_page-not-having-any-effect/)
 *  [edmin](https://wordpress.org/support/users/edmin/)
 * (@edmin)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/posts_per_page-not-having-any-effect/#post-4446415)
 * Please add this to the documentation – I have been scratching my head over this
   one!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HTML5 Contact Form] [Plugin: HTML5 Contact Form] No Header error (for WP version 3.2.1)](https://wordpress.org/support/topic/plugin-html5-contact-form-no-header-error-for-wp-version-321/)
 *  [edmin](https://wordpress.org/support/users/edmin/)
 * (@edmin)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-html5-contact-form-no-header-error-for-wp-version-321/#post-2352788)
 * Yep, seeing the same issue
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: WP-FB-AutoConnect] Plugin creates user accounts that are inaccessible](https://wordpress.org/support/topic/plugin-wp-fb-autoconnect-plugin-creates-user-accounts-that-are-inaccessible/)
 *  [edmin](https://wordpress.org/support/users/edmin/)
 * (@edmin)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-fb-autoconnect-plugin-creates-user-accounts-that-are-inaccessible/#post-1524713)
 * Im seeing the same behaviour carinallc – although I did see a post of yours over
   on the [WP-FB AutoConnect project page](http://buddypress.org/community/groups/wp-fb-autoconnect/reviews/)
 * >  Add the following to your wp-config.php file and it should work.
 * `define( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', true );`
 * >  It will change the behaviour of BP such that is does use the auto-generated
   > username rather than the full name received from Facebook. Once done, the plugin
   > works well with BuddyPress.
 * I did try this, but found that the blue ‘login with facebook’ buttons are now
   missing…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error saving media attachment](https://wordpress.org/support/topic/error-saving-media-attachment/)
 *  [edmin](https://wordpress.org/support/users/edmin/)
 * (@edmin)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/#post-1137684)
 * Hi all,
 * I have found that simply leaving a leading slash ‘/’ on your upload URL will 
   cause this problem.
 * Settings > Miscellaneous > Store uploads in this folder
 * Make sure this is set to:
 * wp-content/uploads
 * and not
 * /wp-content/uploads
 * Hope that helps someone!

Viewing 6 replies - 1 through 6 (of 6 total)