[wp-hackers] category/ and tag/ urls not working 3.5.1 (change author base)

Kathy Darling helgatheviking at gmail.com
Fri Feb 15 12:04:33 UTC 2013


This changes the author base for me on WP3.5.1.... I have it in an
mu-plugin.  Need to save permalinks after adding... either manually or with
flush_rewrite_rules() on activation.



> // change base of author pages- need to save permalinks to take effect
> function lifelounge_mu_init(){
> global $wp_rewrite;
> $wp_rewrite->author_base = 'editorial'; // or whatever
> $wp_rewrite->author_structure = '/' . $wp_rewrite->author_base .
> '/%author%';
> }
> add_action('init','lifelounge_mu_init');




On Fri, Feb 15, 2013 at 7:00 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. category/ and tag/ urls not working 3.5.1 (Sinan)
>    2. Re: category/ and tag/ urls not working 3.5.1 (Sinan)
>    3. Re: category/ and tag/ urls not working 3.5.1 (Mika Epstein)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 14 Feb 2013 16:08:45 +0200
> From: Sinan <sinan at sinanisler.com>
> Subject: [wp-hackers] category/ and tag/ urls not working 3.5.1
> To: wp-hackers at lists.automattic.com
> Message-ID:
>         <
> CABmkrsE3LB5rhB4Q0ri2Pd9THbFfCsd5oPoFJj3WED5CA8XwXQ at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi,
>
> Blog category and tags not working on 3.5.1
>
> category/example
> tag/example
>
> not working. ? try to disable all plugins but not fix.  problem is on
> wordpress 3.5.1
>
> how can I fix it? where is the problem?
>
>
> http://wordpress.org/support/topic/category-and-tag-urls-not-working-351?replies=1#post-3855752
>
>
> --
> Sinan ??LER
> sinanisler.com <http://www.sinanisler.com>
> fb.com/sinanisler
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 14 Feb 2013 16:14:56 +0200
> From: Sinan <sinan at sinanisler.com>
> Subject: Re: [wp-hackers] category/ and tag/ urls not working 3.5.1
> To: wp-hackers at lists.automattic.com
> Message-ID:
>         <CABmkrsE-T+8JaRW6UdKXHWMaCvyaFgTkDuB6v7Hyqm=_
> qHfQiw at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> found it beacuse of this.
>
> global $wp_rewrite;
> $wp_rewrite->author_base = "example";
> $wp_rewrite->flush_rules();
>
> This was working old version no problem. But obviously not anymore.
>
>
> Any one know better version of this author permalink change ?
>
>
>
>
> 2013/2/14 Sinan <sinan at sinanisler.com>
>
> > Hi,
> >
> > Blog category and tags not working on 3.5.1
> >
> > category/example
> > tag/example
> >
> > not working. ? try to disable all plugins but not fix.  problem is on
> > wordpress 3.5.1
> >
> > how can I fix it? where is the problem?
> >
> >
> >
> http://wordpress.org/support/topic/category-and-tag-urls-not-working-351?replies=1#post-3855752
> >
> >
> > --
> > Sinan ??LER
> > sinanisler.com <http://www.sinanisler.com>
> > fb.com/sinanisler
> >
>
>
>
> --
> Sinan ??LER
> sinanisler.com <http://www.sinanisler.com>
> fb.com/sinanisler
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 14 Feb 2013 06:25:46 -0800
> From: Mika Epstein <ipstenu at ipstenu.org>
> Subject: Re: [wp-hackers] category/ and tag/ urls not working 3.5.1
> To: "wp-hackers at lists.automattic.com"
>         <wp-hackers at lists.automattic.com>
> Cc: "wp-hackers at lists.automattic.com"
>         <wp-hackers at lists.automattic.com>
> Message-ID: <B367C861-40C9-48D9-BAA9-40042609C9AE at ipstenu.org>
> Content-Type: text/plain;       charset=utf-8
>
> Replied in the forums, since it works for me, unless we're talking about
> your setting your permalinks to %category%/%postname% (which I just didn't
> test at this hour).
>
> Permalink flushing just clears the cache, IIRC, it doesn't actually change
> permalinks.
>
> On Feb 14, 2013, at 6:14 AM, Sinan <sinan at sinanisler.com> wrote:
>
> > found it beacuse of this.
> >
> > global $wp_rewrite;
> > $wp_rewrite->author_base = "example";
> > $wp_rewrite->flush_rules();
> >
> > This was working old version no problem. But obviously not anymore.
> >
> >
> > Any one know better version of this author permalink change ?
> >
> >
> >
> >
> > 2013/2/14 Sinan <sinan at sinanisler.com>
> >
> >> Hi,
> >>
> >> Blog category and tags not working on 3.5.1
> >>
> >> category/example
> >> tag/example
> >>
> >> not working. ? try to disable all plugins but not fix.  problem is on
> >> wordpress 3.5.1
> >>
> >> how can I fix it? where is the problem?
> >>
> >>
> >>
> http://wordpress.org/support/topic/category-and-tag-urls-not-working-351?replies=1#post-3855752
> >>
> >>
> >> --
> >> Sinan ??LER
> >> sinanisler.com <http://www.sinanisler.com>
> >> fb.com/sinanisler
> >
> >
> >
> > --
> > Sinan ??LER
> > sinanisler.com <http://www.sinanisler.com>
> > fb.com/sinanisler
> > _______________________________________________
> > 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 97, Issue 16
> ******************************************
>


More information about the wp-hackers mailing list