396 reputation
422
bio website
location
age
visits member for 3 years, 5 months
seen yesterday

Jul
21
comment Automatically remove trashed pages from nav menu
Thank you so much for your help!
Jul
21
comment Automatically remove trashed pages from nav menu
Right. No other way? I deliberately disabled that because a new top level menu item would mess with my design.
Jul
21
comment Automatically remove trashed pages from nav menu
Oh, that works like a charm! Thanks so much. Is there some easy way to have the page be brought back to the nav menu if the page is untrashed?
Jul
21
comment Automatically remove trashed pages from nav menu
@TheDeadMedic Yes, you are correct. Sorry about that.
Jul
19
comment Sort wp_nav_menu() by menu order
@toscho I also found this, but not really sure if it applies to my problem: wordpress.stackexchange.com/a/52408/2830 Tried this to no avail: pastebin.com/5NHqC2S1
Jul
18
comment Sort wp_nav_menu() by menu order
@toscho I am yet to find something to try out, the only code I've found is the one that reverses the array, not quite what I'm looking for. Maybe it's possible to do something in the walker, but it's too complex for me to understand (it's from the roots framework: pastebin.com/W5ja5dGJ)
Jul
18
comment Remove rows in the manage post/page view
Oh, that's unfortunate. I'll mark this as the accepted answer for now. Hopefully there will be a hook in the future.
Jul
11
comment How do you use a CPT as the default home page?
@EAmann Thanks for the code! It works as it should, although it changes the title of the frontpage to Title of Post | Homepage name, can this be changed to just be the Homepage name, in someway?
Jun
25
comment Insert attachments from custom uploader into post (regular uploader style)
Thanks for your reply. I googled around, all I could find is how to incorporate that code into a button in TinyMCE. How can I make a link within my metabox that sends images to the editor?
Jun
24
comment Adding uploaded images to editor from metabox instead of default popup uploader
@kaiser Is it possible to add an "insert into post" button, much like the regular uploader works?
Jun
24
comment Remove parent slug for child pages
@fdsa Doesn't work automatically, does it?
Jun
7
comment Sets post_parent in custom post type posts automatically based on cpt->page name
Thanks so much! Works splendid. I want it to work with every CPT created. What more should I exclude to make sure I don't run into problems?
May
5
comment Nav Menu – Add class based on meta keys
Yay, works as it should now. I had to change post to page otherwise it works as intended. Thank you so much :)
May
4
comment Nav Menu – Add class based on meta keys
@ampt Ok, now I see. If I visit the actual page that has the meta key, it shows up, but I need the meta key as a class at all times (some menu items should be red, some green etc).
May
4
comment Nav Menu – Add class based on meta keys
@ampt Really? If I write test $classes[] = 'test'; instead of $colorcode, I get "test" on every page menu item. If I do a var_dump(get_post_meta($post->ID, 'color_dropdown', true)); I just get back empty strings. I'm 100% certain that one of the pages have a value assigned to color_dropdown. First I thought it was an issue with the Roots Framework I'm using, but it doesn't seem to be because of that. I'm using Wordpress 3.1.3 if that could impede in someway?
Apr
21
comment Having two different versions of the same post?
Wonderful, How come I didn't think of that? :) Very helpful!
Dec
22
comment Admin top level menu, pointing to an external url
I thought so too, but either I'm doing it wrong or it doesnt work: pastebin.com/PeiFnW6N There's a link but it doesn't show if it's active/current.
Dec
22
comment Admin top level menu, pointing to an external url
Oh, doh. Was a bit tired when I wrote that. I'm now using the code to create a "shortcut" to a dashboard url. It's a direct link to a submenu item: pastebin.com/q89sAVTi
Dec
22
comment Admin top level menu, pointing to an external url
I wanted to use this code for another project, but I just now realized that using this piece of code, I don't get the "current" class when the link is active (like you do on regular admin menu items). I really need this for a coherent styling in this project. Do you have any ideas?
Nov
17
comment Custom column for changing post status via ajax
Splendid as usual, thank you so much!