[wp-hackers] hello ? have a problem

czArte de la Praga czarte at gmail.com
Sun Jan 16 16:51:07 UTC 2011


Filtering childs of any category you can take by
post_is_in_descendant_category_function() you must add in your theme:

http://codex.wordpress.org/Function_Reference/in_category#post_is_in_descendant_category_function


Message: 6
> Date: Thu, 13 Jan 2011 00:47:13 +0200
> From: Sinan <yok2504 at gmail.com>
> Subject: Re: [wp-hackers] hello ? have a problem
> To: wp-hackers at lists.automattic.com
> Message-ID:
>        <AANLkTinobXnJoqSfk0Gj9eM1dLrPfK_7xsaN0KjbqEHL at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> ? found the problem, I chose the mother category but i want the see child
> categorys :)
>
> thank you guys for fast answers :)
>
>
>
>
> 13 Ocak 2011 00:41 tarihinde Sinan <yok2504 at gmail.com> yazd?:
>
> > still not working
> >
> > http://prntscr.com/1ekux
> >
> >
> > pff :(
> >
> > 2011/1/13 Nathaniel Taintor <goldenapplesdesign at gmail.com>
> >
> > On Wed, Jan 12, 2011 at 2:30 PM, Sinan <yok2504 at gmail.com> wrote:
> >>
> >> > i dont know why but is_category() not working
> >> >
> >> > is there have any other solutions ?
> >> >
> >>
> >>
> >> I think it should be in_category()...
> >>
> >>
> >> >
> >> >
> >> > 2011/1/13 Alexander Hempton-Smith <hempsworth at gmail.com>
> >> >
> >> > > In your single.php you could use a conditional statement to do
> >> > > something specific for that category:
> >> > >
> >> > > if ( is_category( 'your-cat' ) ) {
> >> > >
> >> > > // Do something for that category
> >> > >
> >> > > } else {
> >> > >
> >> > > // Something else for all other cats
> >> > >
> >> > > }
> >> > >
> >> > > -- Alex
> >> > >
> >> > > Sent from my iPhone
> >> > >
> >> > > On 12 Jan 2011, at 22:05, Sinan <yok2504 at gmail.com> wrote:
> >> > >
> >> > > > i need a solution for this problem;
> >> > > >
> >> > > >
> >> > > > you know that;   category-*id*.php   list the special category but
> i
> >> > need
> >> > > > when click the   post  in this category-*id*.php
> >> > > >
> >> > > > open   single-*(cat-id)*.php   how can i do that ?
> >> > > >
> >> > > >
> >> > > >
> >> > > > :(
> >> > > >
> >> > > > --
> >> > > >     Sinan ??LER
> >> > > > www.sinanisler.com
> >> > > > sinanisler.deviantart.com
> >> > > > _______________________________________________
> >> > > > 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
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> >      Sinan ??LER
> >> > www.sinanisler.com
> >> > sinanisler.deviantart.com
> >> > _______________________________________________
> >> > 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
> >>
> >
> >
> >
> > --
> >      Sinan ??LER
> > www.sinanisler.com
> > sinanisler.deviantart.com
> >
>
>
>
> --
>     Sinan ??LER
> www.sinanisler.com
> sinanisler.deviantart.com
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 12 Jan 2011 14:48:04 -0800 (PST)
> From: "24/7" <24-7 at gmx.net>
> Subject: [wp-hackers] wp_redirect extremly slow
> To: wp-hackers at lists.automattic.com
> Message-ID:
>        <2d5f3093-ec56-4f8c-bae4-7aa2a443d533 at r29g2000yqj.googlegroups.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> i work with my own little framework and got some sort of small setup
> procedure. Therefore i question if the setup process is already done
> or if there should be a redirect to the setup page. My problem is,
> that the redirect via wp_redirect often ends up needing 30sec.+ Has
> someone any explanation for this?
>
> <?php
> // Note: Just example code. Typing errors happened in here
>
> class myInit() {
> function __construct() {
>   if ( empty($setup) ) {
>       // do stuff
>   }
>   else {
>       add_action( 'init', array(&$this, 'redirect'), 0);
>   }
>
>   public static function redirect() {
>       wp_redirect( get_bloginfo('url').'/wp-admin/admin.php?
> page=setup.php', 301 );
>   }
> }
> }
>
> Thanks!
> -K.
>
>
> ------------------------------
>
> Message: 8
> Date: Wed, 12 Jan 2011 17:52:21 -0500
> From: Andrew Nacin <wp at andrewnacin.com>
> Subject: Re: [wp-hackers] wp_redirect extremly slow
> To: wp-hackers at lists.automattic.com
> Message-ID:
>        <AANLkTinN7iL8zE_iXTyx6bkB-4oqcRkoJEj0Xc=-G65B at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Wed, Jan 12, 2011 at 5:48 PM, 24/7 <24-7 at gmx.net> wrote:
>
> > Hi,
> >
> > i work with my own little framework and got some sort of small setup
> > procedure. Therefore i question if the setup process is already done
> > or if there should be a redirect to the setup page. My problem is,
> > that the redirect via wp_redirect often ends up needing 30sec.+ Has
> > someone any explanation for this?
> >
> > <?php
> > // Note: Just example code. Typing errors happened in here
> >
> > class myInit() {
> > function __construct() {
> >   if ( empty($setup) ) {
> >       // do stuff
> >   }
> >   else {
> >       add_action( 'init', array(&$this, 'redirect'), 0);
> >   }
> >
> >   public static function redirect() {
> >       wp_redirect( get_bloginfo('url').'/wp-admin/admin.php?
> > page=setup.php', 301 );
> >   }
> > }
> > }
> >
>
> You need to always call exit; or die; after wp_redirect(). Otherwise, the
> script continues and headers may not be sent.
>
>
> ------------------------------
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
> End of wp-hackers Digest, Vol 72, Issue 27
> ******************************************
>



-- 
S pozdravem Vojtěch Parkán

Czarte Design
www.czarte.eu

Space Orange studio
www.spaceorange.eu


More information about the wp-hackers mailing list