[wp-hackers] Custom Post Type and Taxonomy do not register

Álex Acuña Viera kyuumeitai at gmail.com
Wed Mar 9 00:39:16 UTC 2011


indeed, that way you rewrite the permalink settings. Hitting the 'save' button will do (without making any changes). This is required for every rewrite change on CPTs and taxonomies. 

Enviado desde mi iPhone

El 08-03-2011, a las 8:43, "John 3:16 Media" <wp at john316media.com> escribió:

> Nevermind, manually switching to default permalinks /?p=123 then saving,
> then back and saving worked.
> 
> On Tue, Mar 8, 2011 at 2:39 AM, John 3:16 Media <wp at john316media.com> wrote:
> 
>> Got a new problem, pages, posts, everything except the home page returns a
>> 404 error, I did flush rewrite rules, not sure if there is something else
>> i'm supposed to try.
>> 
>> 
>> On Tue, Mar 8, 2011 at 1:30 AM, John 3:16 Media <wp at john316media.com>wrote:
>> 
>>> Well first off it's in functions.php, second the function is firing, if I
>>> echo 'Hello World'; I can see it when I reload the page.
>>> 
>>> I did ultimately find the problem, the code was indeed working perfect.
>>> The culprit was a plugin,
>>> http://karmaprogressive.com/2010/09/our-wordpress-plugin-simple-admin-menu-editor/,
>>> I installed it to hide the posts menu, since I won't be using posts.
>>> However it apparently hides new menus by default, so I had to configure it
>>> to show me the menus for the custom post type and taxonomy.
>>> 
>>>  On Mon, Mar 7, 2011 at 9:42 PM, Mike Schinkel <
>>> mikeschinkel at newclarity.net> wrote:
>>> 
>>>> On Mar 8, 2011, at 12:31 AM, John 3:16 Media wrote:
>>>>> I am trying to register a custom post type on 3.1 with a custom
>>>> taxonomy,
>>>>> see my code at http://pastebin.com/jwwkLuCX
>>>>> 
>>>>> The problem is it does nothing, well nothing new, Wordpress still loads
>>>> just
>>>>> fine, no errors even with debug on, but no menus for these either.  Am
>>>> I
>>>>> doing something wrong?
>>>> 
>>>> I just tried your code and it works fine for me on 3.1.   Did you have
>>>> that code in your theme's functions.php and if not, where is the code?
>>>> If in your theme's functions.php file, what theme are you using (does it
>>>> support a functions.php?)
>>>> 
>>>> -Mike
>>>> 
>>>> 
>>>> _______________________________________________
>>>> 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


More information about the wp-hackers mailing list