This tutorial will guide you to create your own custom post composing form to enable fast blogging with your favorite theme without adding a plugin. I’m looking for any alternative to not porting P2, however…. none., finally that’s the reason i wrote it, and It was also inspired by the original development from http://wpshout.com/wordpress-submit-posts-from-frontend/.
I found the code from http://wpshout.com/wordpress-submit-posts-from-frontend/ , but it doesn’t handle file attachment, indeed most people and I was demand on image uploads for status update, photo blogging.. whatever . But to get working with build-in WordPress media upload function require a lots of code work, and if you prefer a fully functional media library, you could base on P2 theme instead.
How it work
It create a post form to allow the post content inserted by wp_insert_post.
following the post_id, it attach the uploaded files to the post.
Set the first ordered image to the post “featured images”
Lastly, you call get_all_thumbnails before the_content() in order to retrieve the uploaded files.
The critical limitation is lack of media features, unlike build-in media library, you can customize your post images and place it on your desired position. Therefore the images only able to retrieve by the_post_thumbnail() for single image or get_all_thumbnails() for multiple images.
There is so many people asking how to improve their mysql instance, and also so many replies that increase key_buffer, sort_buffer, cache size… etc… which believe will lighten up the performance. However, fellows never notice those parameters was actually efficient to their setup.
How to solve ORA-19909 error when re-sync dataguard, when the standby database shutdown ungracefully, sometime you may found an error when you put the standby database back online, in this scenario, I try to active the standby database and flash back to standby mode in order to let standby database re-apply archive logs again.
Error message as below
MRP0: Background Media Recovery terminated with error 19909
ORA-19909: datafile 1 belongs to an orphan incarnation