Nowell VanHoesen
Forum Replies Created
-
Forum: Alpha/Beta/RC
In reply to: 3.5-rc1 menu_order not saved to the database for attached imagesNacin, thanks for the info.
Maybe a hook for an action would be helpful.
Besides using wp_editor(), is there a way to add the “Add Media” button to a meta box?
Forum: Alpha/Beta/RC
In reply to: 3.5-rc1 menu_order not saved to the database for attached imagesI was trying to use the menu_order to display the gallery outside of the content.
Is there another way to get the order I want without having to insert the gallery into the content field?
Forum: Alpha/Beta/RC
In reply to: Insert as featured image?It’s still there, but you have to get to it using the Featured Image meta box in the post editor.
If you don’t see the Featured Image meta box, usually on the left side, click the Screen Options tab at the top of the page and make sure the Featured Image option is checked.
Forum: Hacks
In reply to: Post version issuesHave you thought about using $wpdb->query()?
I know this would not be ideal, but after racking my brain and too many hours trying to accomplish the same task I think I am going to create my own query with a check to make sure it’s not already set.
The following works. It is in a function that is called with a save_post add_action.
$new_post_title = 'new title'; if ( $new_post_title !== $post->post_title ) { $new_post_name = sanitize_title( $new_post_title ); $wpdb->query( $wpdb->prepare( "update $wpdb->posts set post_title = '$new_post_title', post_name = '$new_post_name' where ID = $post->ID" ) ); }
HTH
Forum: Fixing WordPress
In reply to: the_Date() 3 letters MonthI just ran into the same issue. php’s date table shows that ‘M’ = A short textual representation of a month, three letters.
I tried it within the the_date(‘M’) and nothing was displayed.
I tried it in the_time(‘M’) and it was displayed.
So, the_date doesn’t support displaying the short textual representation of a month, but the_time does.
enjoy,
nvwd
——————-
I had 2 the_date functions within the same loop. The first I had displaying the day, the second the 3 char month. The second displayed nothing. When I changed the second the_date to the_time the 3 char month was displayed. I just tried making the first the_date display the 3 char month with success.
So, the second call to the_date didn’t function properly.nvwd