Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Nowell VanHoesen

    (@nvwd)

    Nacin, 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?

    Thread Starter Nowell VanHoesen

    (@nvwd)

    I 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?

    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 issues

    Have 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

    I 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

Viewing 5 replies - 16 through 20 (of 20 total)