Method attachment doesn't exist in NGHH\WPTheme\Controllers\SingleController