custom registration form [duplicate]

you can use Cimy User Extra Fields , its a plugin that lets you add extra user fields to the registration form. or you can create your own custom registration page with your extra fields by following this great article http://www.cozmoslabs.com/2010/05/31/wordpress-user-registration-template-and-custom-user-profile-fields/

Create post from form with image

I think the problem is with your form tag missing enctype=”multipart/form-data” so try changing: <form method=”post” action=””> to: <form method=”post” action=”” enctype=”multipart/form-data”> and as a side note, if you want to redirect to the newly created post change: wp_redirect( ‘http://domain.com’ ); to: wp_redirect( get_permalink($post_id)); exit(); Update: From the comments i understand that want the image … Read more

Redirect back to origin page after using get_delete_post_link()

Theres a filter you can hook on to. apply_filters( ‘get_delete_post_link’, wp_nonce_url( $delete_link, “$action-{$post->post_type}_{$post->ID}” ), $post->ID, $force_delete ); Check the raw function here: http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/link-template.php#L954 Can’t advise much else without seeing your code. Edit: its nasty buy you can do add_filter( ‘get_delete_post_link’, ‘some_function’, 20 ); function some_function() { wp_redirect( home_url(“https://wordpress.stackexchange.com/”) ); exit; }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)