[wp-hackers] wp-hackers Digest, Vol 66, Issue 87

Jared Williams jaredwilli at gmail.com
Fri Jul 23 11:40:42 UTC 2010


Sorry but this is irrelevant.

Is it possible to get this email list delivered as a once a day email, that
sends all of the emails of the day in one large message? I would like to be
subscribed to it but it blows up my inbox.
I tried to set it to daily digest or whatever that thing is, but doesn't
seem to do what I thought.

Thanks.

Jared

On Fri, Jul 23, 2010 at 7:13 AM, <wp-hackers-request at lists.automattic.com>wrote:

> Send wp-hackers mailing list submissions to
>        wp-hackers at lists.automattic.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.automattic.com/mailman/listinfo/wp-hackers
> or, via email, send a message with subject or body 'help' to
>        wp-hackers-request at lists.automattic.com
>
> You can reach the person managing the list at
>        wp-hackers-owner at lists.automattic.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of wp-hackers digest..."
>
>
> Today's Topics:
>
>   1. Re: Custom Post Type in Admin,    filter by new custom
>      Taxonomies (Mike Schinkel)
>   2. Re: Custom Post Type in Admin,    filter by new custom
>      Taxonomies (Jimmy Roy)
>   3. Re: Custom Post Type in Admin,    filter by new custom
>      Taxonomies (Frank Bueltge)
>   4. Re: Custom Post Type in Admin,    filter by new custom
>      Taxonomies (Mike Schinkel)
>   5. Re: Custom Post Type in Admin,    filter by new custom
>      Taxonomies (Mike Schinkel)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 23 Jul 2010 06:39:37 -0400
> From: Mike Schinkel <mikeschinkel at newclarity.net>
> Subject: Re: [wp-hackers] Custom Post Type in Admin,    filter by new
>        custom  Taxonomies
> To: wp-hackers at lists.automattic.com
> Message-ID: <7EC8DB89-7E18-4F2C-B94A-E1B78B29EA88 at newclarity.net>
> Content-Type: text/plain;       charset=us-ascii
>
> Jimmy,
>
> Please do the same I asked of Frank. Again, show me your
>  register_post_type, request hook, restrict_manage_posts. Post the code at
> http://wordpress.pastebin.com/ or http://gist.github.com/ so it's indented
> and easier to read.
>
> Also, are you using any other plugins that might be affecting the query
> vars?
>
> -Mike
>
> On Jul 23, 2010, at 6:32 AM, Jimmy Roy wrote:
>
> > Array ( [order] => asc [orderby] => menu_order title [post_type] =>
> > ressource_fr [posts_per_page] => -1 [posts_per_archive_page] => -1 )
> >
> > url after clicking "filter" button :
> >
> >
> http://localhost:8888/wp3.0/profperso/wp-admin/edit.php?s&post_status=all&post_type=ressource_fr&mode=list&action=-1&m=0&classement_fr=6&action2=-1
> >
> >
> > 2010/7/23 Mike Schinkel <mikeschinkel at newclarity.net>
> >
> >> What do you get in the view source when you using this instead:
> >>
> >> function request($request) {
> >>       print_r($request);
> >>       exit;
> >> }
> >>
> >> Also, what's your URL after clicking the "Filter" button?
> >>
> >> -Mike
> >>
> >>
> >> On Jul 23, 2010, at 6:02 AM, Jimmy Roy wrote:
> >>
> >>> now, when I click on filter button the result is always the same, all
> >> list
> >>> of ressources.
> >>>
> >>> my code :
> >>>
> >>> add_action( 'init', 'register_profperso_taxonomies', 0 );
> >>>
> >>> function register_profperso_taxonomies() {
> >>>
> >>> register_taxonomy(
> >>> 'classement_fr',
> >>> array( 'ressource_fr' ),
> >>> array(
> >>> 'public' => true,
> >>> 'hierarchical' => true,
> >>> 'labels' => array(
> >>> 'name' => __( 'Classements FR' ),
> >>> 'singular_name' => __( 'Classement FR' )
> >>> ),
> >>> 'query_var' => 'classement-fr',
> >>>       'rewrite' => array( 'slug' => 'cours-fr' ),
> >>> )
> >>> );
> >>> }
> >>>
> >>>
> >>> // pour filtrer les ressources par classement
> >>> add_action( 'restrict_manage_posts','my_restrict_manage_posts' );
> >>>
> >>> function my_restrict_manage_posts() {
> >>> global $typenow;
> >>> if ($typenow=='ressource_fr')
> >>> wp_dropdown_categories( 'show_option_all=Afficher
> >>>
> >>
> tout&show_count=1&hierarchical=1&taxonomy=classement_fr&name=classement_fr');
> >>> }
> >>>
> >>> add_action( 'request', 'my_request' );
> >>> function my_request($request) {
> >>>      if (isset($request['post_type']) &&
> >>> $request['post_type']=='ressource_fr') {
> >>>              $request['taxonomy'] = 'classement_fr';
> >>>              $request['term'] =
> >>> get_term($request['classement-fr'],'classement_fr')->name;
> >>>              unset($request['name']);
> >>>      }
> >>>      return $request;
> >>> }
> >>>
> >>> generated html :
> >>> <select id="classement_fr" name="classement_fr"> <option value="0">Show
> >> All
> >>> Classements FR</option> <option value="5">Langue oral</option> <option
> >> value
> >>> ="6">Niveau 1</option> <option value="7">Niveau 2</option> <option
> >> value="8
> >>> ">Niveau 3</option> </select><input type="submit"
> id="post-query-submit"
> >>> value="Filtrer" class="button-secondary" />
> >>> _______________________________________________
> >>> wp-hackers mailing list
> >>> wp-hackers at lists.automattic.com
> >>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 23 Jul 2010 18:46:40 +0800
> From: Jimmy Roy <jimmy.roy at gmail.com>
> Subject: Re: [wp-hackers] Custom Post Type in Admin,    filter by new
>        custom  Taxonomies
> To: wp-hackers at lists.automattic.com
> Message-ID:
>        <AANLkTikDq2vEg342XC0jyQcYvP21trthAnDMTJcMGnbq at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> ok, I will post the code there.
> I don't use any plugin.
>
> Jimmy
>
>
>
> 2010/7/23 Mike Schinkel <mikeschinkel at newclarity.net>
>
> > Jimmy,
> >
> > Please do the same I asked of Frank. Again, show me your
> >  register_post_type, request hook, restrict_manage_posts. Post the code
> at
> > http://wordpress.pastebin.com/ or http://gist.github.com/ so it's
> indented
> > and easier to read.
> >
> > Also, are you using any other plugins that might be affecting the query
> > vars?
> >
> > -Mike
> >
> > On Jul 23, 2010, at 6:32 AM, Jimmy Roy wrote:
> >
> > > Array ( [order] => asc [orderby] => menu_order title [post_type] =>
> > > ressource_fr [posts_per_page] => -1 [posts_per_archive_page] => -1 )
> > >
> > > url after clicking "filter" button :
> > >
> > >
> >
> http://localhost:8888/wp3.0/profperso/wp-admin/edit.php?s&post_status=all&post_type=ressource_fr&mode=list&action=-1&m=0&classement_fr=6&action2=-1
> > >
> > >
> > > 2010/7/23 Mike Schinkel <mikeschinkel at newclarity.net>
> > >
> > >> What do you get in the view source when you using this instead:
> > >>
> > >> function request($request) {
> > >>       print_r($request);
> > >>       exit;
> > >> }
> > >>
> > >> Also, what's your URL after clicking the "Filter" button?
> > >>
> > >> -Mike
> > >>
> > >>
> > >> On Jul 23, 2010, at 6:02 AM, Jimmy Roy wrote:
> > >>
> > >>> now, when I click on filter button the result is always the same, all
> > >> list
> > >>> of ressources.
> > >>>
> > >>> my code :
> > >>>
> > >>> add_action( 'init', 'register_profperso_taxonomies', 0 );
> > >>>
> > >>> function register_profperso_taxonomies() {
> > >>>
> > >>> register_taxonomy(
> > >>> 'classement_fr',
> > >>> array( 'ressource_fr' ),
> > >>> array(
> > >>> 'public' => true,
> > >>> 'hierarchical' => true,
> > >>> 'labels' => array(
> > >>> 'name' => __( 'Classements FR' ),
> > >>> 'singular_name' => __( 'Classement FR' )
> > >>> ),
> > >>> 'query_var' => 'classement-fr',
> > >>>       'rewrite' => array( 'slug' => 'cours-fr' ),
> > >>> )
> > >>> );
> > >>> }
> > >>>
> > >>>
> > >>> // pour filtrer les ressources par classement
> > >>> add_action( 'restrict_manage_posts','my_restrict_manage_posts' );
> > >>>
> > >>> function my_restrict_manage_posts() {
> > >>> global $typenow;
> > >>> if ($typenow=='ressource_fr')
> > >>> wp_dropdown_categories( 'show_option_all=Afficher
> > >>>
> > >>
> >
> tout&show_count=1&hierarchical=1&taxonomy=classement_fr&name=classement_fr');
> > >>> }
> > >>>
> > >>> add_action( 'request', 'my_request' );
> > >>> function my_request($request) {
> > >>>      if (isset($request['post_type']) &&
> > >>> $request['post_type']=='ressource_fr') {
> > >>>              $request['taxonomy'] = 'classement_fr';
> > >>>              $request['term'] =
> > >>> get_term($request['classement-fr'],'classement_fr')->name;
> > >>>              unset($request['name']);
> > >>>      }
> > >>>      return $request;
> > >>> }
> > >>>
> > >>> generated html :
> > >>> <select id="classement_fr" name="classement_fr"> <option
> value="0">Show
> > >> All
> > >>> Classements FR</option> <option value="5">Langue oral</option>
> <option
> > >> value
> > >>> ="6">Niveau 1</option> <option value="7">Niveau 2</option> <option
> > >> value="8
> > >>> ">Niveau 3</option> </select><input type="submit"
> > id="post-query-submit"
> > >>> value="Filtrer" class="button-secondary" />
> > >>> _______________________________________________
> > >>> wp-hackers mailing list
> > >>> wp-hackers at lists.automattic.com
> > >>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >>
> > >> _______________________________________________
> > >> wp-hackers mailing list
> > >> wp-hackers at lists.automattic.com
> > >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >>
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 23 Jul 2010 13:02:34 +0200
> From: Frank Bueltge <frank at bueltge.de>
> Subject: Re: [wp-hackers] Custom Post Type in Admin,    filter by new
>        custom  Taxonomies
> To: wp-hackers at lists.automattic.com
> Message-ID:
>        <AANLkTinXfH2EO-Bv5KCZgH_6DuE-QKf9xwVSLCLOgTE5 at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> @mike: i hope is not to much source, is an example plugin to test
> possibilies with custom post type
> http://wordpress.pastebin.com/0u7DW03C
>
>
>
> On Fri, Jul 23, 2010 at 12:31 PM, Mike Schinkel
> <mikeschinkel at newclarity.net> wrote:
> > Frank,
> >
> > Please show me your ?register_post_type, request hook,
> restrict_manage_posts. Post the code at http://wordpress.pastebin.com/ or
> http://gist.github.com/ so it's indented and easier to read.
> >
> > -Mike
> >
> > On Jul 23, 2010, at 6:29 AM, Frank Bueltge wrote:
> >
> >> with fitler:
> >> Array ( [cat] => 26 [order] => DESC [orderby] => date [post_type] =>
> >> quotes [posts_per_page] => 20 )
> >>
> >> default, without filter.
> >> Array ( [order] => DESC [orderby] => date [post_type] => quotes
> >> [posts_per_page] => 20 )
> >>
> >>
> >>
> >> On Fri, Jul 23, 2010 at 12:23 PM, Mike Schinkel
> >> <mikeschinkel at newclarity.net> wrote:
> >>> What do you get in the view source when you using this instead:
> >>>
> >>> function request($request) {
> >>> ? ? ? ?print_r($request);
> >>> ? ? ? ?exit;
> >>> }
> >>>
> >>> Also, what's your URL after clicking the "Filter" button?
> >>>
> >>> -Mike
> >>>
> >>>
> >>> On Jul 23, 2010, at 6:02 AM, Jimmy Roy wrote:
> >>>
> >>>> now, when I click on filter button the result is always the same, all
> list
> >>>> of ressources.
> >>>>
> >>>> my code :
> >>>>
> >>>> add_action( 'init', 'register_profperso_taxonomies', 0 );
> >>>>
> >>>> function register_profperso_taxonomies() {
> >>>>
> >>>> register_taxonomy(
> >>>> 'classement_fr',
> >>>> array( 'ressource_fr' ),
> >>>> array(
> >>>> 'public' => true,
> >>>> 'hierarchical' => true,
> >>>> 'labels' => array(
> >>>> 'name' => __( 'Classements FR' ),
> >>>> 'singular_name' => __( 'Classement FR' )
> >>>> ),
> >>>> 'query_var' => 'classement-fr',
> >>>> ? ? ? ?'rewrite' => array( 'slug' => 'cours-fr' ),
> >>>> )
> >>>> );
> >>>> }
> >>>>
> >>>>
> >>>> // pour filtrer les ressources par classement
> >>>> add_action( 'restrict_manage_posts','my_restrict_manage_posts' );
> >>>>
> >>>> function my_restrict_manage_posts() {
> >>>> global $typenow;
> >>>> if ($typenow=='ressource_fr')
> >>>> wp_dropdown_categories( 'show_option_all=Afficher
> >>>>
> tout&show_count=1&hierarchical=1&taxonomy=classement_fr&name=classement_fr');
> >>>> }
> >>>>
> >>>> add_action( 'request', 'my_request' );
> >>>> function my_request($request) {
> >>>> ? ? ? if (isset($request['post_type']) &&
> >>>> $request['post_type']=='ressource_fr') {
> >>>> ? ? ? ? ? ? ? $request['taxonomy'] = 'classement_fr';
> >>>> ? ? ? ? ? ? ? $request['term'] =
> >>>> get_term($request['classement-fr'],'classement_fr')->name;
> >>>> ? ? ? ? ? ? ? unset($request['name']);
> >>>> ? ? ? }
> >>>> ? ? ? return $request;
> >>>> }
> >>>>
> >>>> generated html :
> >>>> <select id="classement_fr" name="classement_fr"> <option
> value="0">Show All
> >>>> Classements FR</option> <option value="5">Langue oral</option> <option
> value
> >>>> ="6">Niveau 1</option> <option value="7">Niveau 2</option> <option
> value="8
> >>>> ">Niveau 3</option> </select><input type="submit"
> id="post-query-submit"
> >>>> value="Filtrer" class="button-secondary" />
> >>>> _______________________________________________
> >>>> wp-hackers mailing list
> >>>> wp-hackers at lists.automattic.com
> >>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>>
> >>> _______________________________________________
> >>> wp-hackers mailing list
> >>> wp-hackers at lists.automattic.com
> >>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>>
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 23 Jul 2010 07:04:54 -0400
> From: Mike Schinkel <mikeschinkel at newclarity.net>
> Subject: Re: [wp-hackers] Custom Post Type in Admin,    filter by new
>        custom  Taxonomies
> To: wp-hackers at lists.automattic.com
> Message-ID: <BD16269A-6163-4F9F-BFC8-CDA525E5908F at newclarity.net>
> Content-Type: text/plain; charset=us-ascii
>
> Jimmy,
>
> I just noticed, '[classement_fr] => 6' is not in your array.
>
> First try to use either "classement_fr" everywhere or "classement-fr" and
> see if that fixes it.
>
> -Mike
>
> On Jul 23, 2010, at 6:32 AM, Jimmy Roy wrote:
>
> > Array ( [order] => asc [orderby] => menu_order title [post_type] =>
> > ressource_fr [posts_per_page] => -1 [posts_per_archive_page] => -1 )
> >
> > url after clicking "filter" button :
> >
> >
> http://localhost:8888/wp3.0/profperso/wp-admin/edit.php?s&post_status=all&post_type=ressource_fr&mode=list&action=-1&m=0&classement_fr=6&action2=-1
> >
> >
> > 2010/7/23 Mike Schinkel <mikeschinkel at newclarity.net>
> >
> >> What do you get in the view source when you using this instead:
> >>
> >> function request($request) {
> >>       print_r($request);
> >>       exit;
> >> }
> >>
> >> Also, what's your URL after clicking the "Filter" button?
> >>
> >> -Mike
> >>
> >>
> >> On Jul 23, 2010, at 6:02 AM, Jimmy Roy wrote:
> >>
> >>> now, when I click on filter button the result is always the same, all
> >> list
> >>> of ressources.
> >>>
> >>> my code :
> >>>
> >>> add_action( 'init', 'register_profperso_taxonomies', 0 );
> >>>
> >>> function register_profperso_taxonomies() {
> >>>
> >>> register_taxonomy(
> >>> 'classement_fr',
> >>> array( 'ressource_fr' ),
> >>> array(
> >>> 'public' => true,
> >>> 'hierarchical' => true,
> >>> 'labels' => array(
> >>> 'name' => __( 'Classements FR' ),
> >>> 'singular_name' => __( 'Classement FR' )
> >>> ),
> >>> 'query_var' => 'classement-fr',
> >>>       'rewrite' => array( 'slug' => 'cours-fr' ),
> >>> )
> >>> );
> >>> }
> >>>
> >>>
> >>> // pour filtrer les ressources par classement
> >>> add_action( 'restrict_manage_posts','my_restrict_manage_posts' );
> >>>
> >>> function my_restrict_manage_posts() {
> >>> global $typenow;
> >>> if ($typenow=='ressource_fr')
> >>> wp_dropdown_categories( 'show_option_all=Afficher
> >>>
> >>
> tout&show_count=1&hierarchical=1&taxonomy=classement_fr&name=classement_fr');
> >>> }
> >>>
> >>> add_action( 'request', 'my_request' );
> >>> function my_request($request) {
> >>>      if (isset($request['post_type']) &&
> >>> $request['post_type']=='ressource_fr') {
> >>>              $request['taxonomy'] = 'classement_fr';
> >>>              $request['term'] =
> >>> get_term($request['classement-fr'],'classement_fr')->name;
> >>>              unset($request['name']);
> >>>      }
> >>>      return $request;
> >>> }
> >>>
> >>> generated html :
> >>> <select id="classement_fr" name="classement_fr"> <option value="0">Show
> >> All
> >>> Classements FR</option> <option value="5">Langue oral</option> <option
> >> value
> >>> ="6">Niveau 1</option> <option value="7">Niveau 2</option> <option
> >> value="8
> >>> ">Niveau 3</option> </select><input type="submit"
> id="post-query-submit"
> >>> value="Filtrer" class="button-secondary" />
> >>> _______________________________________________
> >>> wp-hackers mailing list
> >>> wp-hackers at lists.automattic.com
> >>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 23 Jul 2010 07:12:56 -0400
> From: Mike Schinkel <mikeschinkel at newclarity.net>
> Subject: Re: [wp-hackers] Custom Post Type in Admin,    filter by new
>        custom  Taxonomies
> To: wp-hackers at lists.automattic.com
> Message-ID: <B0E5841F-AB25-47BE-94D4-C815460BA672 at newclarity.net>
> Content-Type: text/plain;       charset=us-ascii
>
> One problem, for sure, is line 131, should be:
>
>  wp_dropdown_categories( 'show_option_all=' . __( 'View all authors',
> FB_CPT_TEXTDOMAIN ) . '&show_count=1&hierarchical=1&taxonomy='
> .FB_CPT_TAXONOMY_TYPE_1 . '&name=' .FB_CPT_TAXONOMY_TYPE_1);
>
> If that doesn't solve it you may be on your own (or get someone else here
> to help) as I have to get some sleep eventually...
>
> On Jul 23, 2010, at 7:02 AM, Frank Bueltge wrote:
>
> > @mike: i hope is not to much source, is an example plugin to test
> > possibilies with custom post type
> > http://wordpress.pastebin.com/0u7DW03C
> >
> >
> >
> > On Fri, Jul 23, 2010 at 12:31 PM, Mike Schinkel
> > <mikeschinkel at newclarity.net> wrote:
> >> Frank,
> >>
> >> Please show me your  register_post_type, request hook,
> restrict_manage_posts. Post the code at http://wordpress.pastebin.com/ or
> http://gist.github.com/ so it's indented and easier to read.
> >>
> >> -Mike
> >>
> >> On Jul 23, 2010, at 6:29 AM, Frank Bueltge wrote:
> >>
> >>> with fitler:
> >>> Array ( [cat] => 26 [order] => DESC [orderby] => date [post_type] =>
> >>> quotes [posts_per_page] => 20 )
> >>>
> >>> default, without filter.
> >>> Array ( [order] => DESC [orderby] => date [post_type] => quotes
> >>> [posts_per_page] => 20 )
> >>>
> >>>
> >>>
> >>> On Fri, Jul 23, 2010 at 12:23 PM, Mike Schinkel
> >>> <mikeschinkel at newclarity.net> wrote:
> >>>> What do you get in the view source when you using this instead:
> >>>>
> >>>> function request($request) {
> >>>>        print_r($request);
> >>>>        exit;
> >>>> }
> >>>>
> >>>> Also, what's your URL after clicking the "Filter" button?
> >>>>
> >>>> -Mike
> >>>>
> >>>>
> >>>> On Jul 23, 2010, at 6:02 AM, Jimmy Roy wrote:
> >>>>
> >>>>> now, when I click on filter button the result is always the same, all
> list
> >>>>> of ressources.
> >>>>>
> >>>>> my code :
> >>>>>
> >>>>> add_action( 'init', 'register_profperso_taxonomies', 0 );
> >>>>>
> >>>>> function register_profperso_taxonomies() {
> >>>>>
> >>>>> register_taxonomy(
> >>>>> 'classement_fr',
> >>>>> array( 'ressource_fr' ),
> >>>>> array(
> >>>>> 'public' => true,
> >>>>> 'hierarchical' => true,
> >>>>> 'labels' => array(
> >>>>> 'name' => __( 'Classements FR' ),
> >>>>> 'singular_name' => __( 'Classement FR' )
> >>>>> ),
> >>>>> 'query_var' => 'classement-fr',
> >>>>>        'rewrite' => array( 'slug' => 'cours-fr' ),
> >>>>> )
> >>>>> );
> >>>>> }
> >>>>>
> >>>>>
> >>>>> // pour filtrer les ressources par classement
> >>>>> add_action( 'restrict_manage_posts','my_restrict_manage_posts' );
> >>>>>
> >>>>> function my_restrict_manage_posts() {
> >>>>> global $typenow;
> >>>>> if ($typenow=='ressource_fr')
> >>>>> wp_dropdown_categories( 'show_option_all=Afficher
> >>>>>
> tout&show_count=1&hierarchical=1&taxonomy=classement_fr&name=classement_fr');
> >>>>> }
> >>>>>
> >>>>> add_action( 'request', 'my_request' );
> >>>>> function my_request($request) {
> >>>>>       if (isset($request['post_type']) &&
> >>>>> $request['post_type']=='ressource_fr') {
> >>>>>               $request['taxonomy'] = 'classement_fr';
> >>>>>               $request['term'] =
> >>>>> get_term($request['classement-fr'],'classement_fr')->name;
> >>>>>               unset($request['name']);
> >>>>>       }
> >>>>>       return $request;
> >>>>> }
> >>>>>
> >>>>> generated html :
> >>>>> <select id="classement_fr" name="classement_fr"> <option
> value="0">Show All
> >>>>> Classements FR</option> <option value="5">Langue oral</option>
> <option value
> >>>>> ="6">Niveau 1</option> <option value="7">Niveau 2</option> <option
> value="8
> >>>>> ">Niveau 3</option> </select><input type="submit"
> id="post-query-submit"
> >>>>> value="Filtrer" class="button-secondary" />
> >>>>> _______________________________________________
> >>>>> wp-hackers mailing list
> >>>>> wp-hackers at lists.automattic.com
> >>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>>>
> >>>> _______________________________________________
> >>>> wp-hackers mailing list
> >>>> wp-hackers at lists.automattic.com
> >>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>>>
> >>> _______________________________________________
> >>> wp-hackers mailing list
> >>> wp-hackers at lists.automattic.com
> >>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
>
> ------------------------------
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
> End of wp-hackers Digest, Vol 66, Issue 87
> ******************************************
>



-- 
Thank you,

Jared Williams
Web/Graphic Designer
Tweeaks.com  |  New2WP.com


More information about the wp-hackers mailing list