219 reputation
111
bio website
location
age
visits member for 2 years, 2 months
seen Oct 22 at 8:23

Aug
30
comment Integrating a custom post type into a page hierarchy
@ialocin Have you had a chance to take another look? I've tested it some more, and for me it does't work without hierarchical = true and defining post_parent of course.
Aug
26
comment Integrating a custom post type into a page hierarchy
@ialocin But "no meta box" doesn't mean not populating post_parent, right? And are you using hierarchical = true, 'cause I just noticed that this is what I was missing in my tests d'oh. With hierarchical activated and the post_parent column populated it does work indeed, though this messes up the UI a little bit (indents the title in the table view and shows the parent page for each entry).
Aug
26
revised Integrating a custom post type into a page hierarchy
added 5 characters in body
Aug
26
comment Integrating a custom post type into a page hierarchy
@ialocin Not sure if I understand you correctly, because "tried with the code posted" and "out of the box" are kinda mutually exclusive? ;) Are you only referring to the custom post type, not the highlighting fix?
Aug
26
revised Integrating a custom post type into a page hierarchy
deleted 1 character in body
Aug
26
comment Integrating a custom post type into a page hierarchy
Yep, it's definitely still a problem @ialocin. Could it be that you are testing this with a 0 level menu and the default post type?
Aug
26
answered Integrating a custom post type into a page hierarchy
Aug
23
comment Force download a file within plugin file
Is there a question somewhere? What about an actual problem description? And maybe some hints whether you are really using the code as is, especially with the debug echo. And finally, where exactly is this code being invoked?
Aug
23
revised How to retrieve the permalink for a specific (custom) term?
edited tags, improved formatting, made the question title match the actual question
Aug
23
suggested approved edit on How to retrieve the permalink for a specific (custom) term?
Aug
23
awarded  Investor
Sep
28
awarded  Yearling
Jun
15
awarded  Benefactor
Jun
15
accepted How to add a section to the menus configuration, offering hard coded items?
Jun
15
comment How to add a section to the menus configuration, offering hard coded items?
Alrighty then, looks like I've got everything to get it working... thanks for your help :)
Jun
14
comment How to add a section to the menus configuration, offering hard coded items?
Thanks for your detailed answer. I had another, closer look at wp_update_nav_menu_item, and finally understood that it doesn't necessarily adds items to the menu immediately, and looking at your code it's all less complicated than I thought. However there's one thing I'm not sure about, are there any known problems when linking menu-items to non-existent post-types/posts? One glitch I've noticed is that nothing is shown for the Original label, that's not crucial, but of course it would be nice if the user could still see what type of item it is after changing the Navigation Label.
Jun
14
awarded  Promoter
Jun
13
awarded  Student
Jun
13
awarded  Informed
Jun
12
comment Random element in get_post_meta array
Yep, sorry, I forgot to change the $single parameter in the get_post_meta() call. I've updated the code in my answer.