create gallery page for specific post id

If you want to get all images attached to a single post then you can use this if ( $images = get_posts(array( ‘post_parent’ => $post->ID, ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_mime_type’ => ‘image’,))) { foreach( $images as $image ) { $attachmenturl=wp_get_attachment_url($image->ID); $attachmentimage=wp_get_attachment_image_src( $image->ID, full ); $imageDescription = apply_filters( ‘the_description’ , $image->post_content ); $imageTitle = … Read more

Adding a time stamp on post view

You are nearly there, I’d say. I am sure there are many ways to do this. If it were me, I’d build a ‘nested’ array for this. Something like… array( ‘timestamp-1’ = array( ‘message’ => ‘Updated post1’, ‘message’ => ‘Updated post1’ ), ‘timestamp-2’ = array( ‘message’ => ‘Updated post3’, ‘message’ => ‘Updated post4’, ‘message’ => … Read more