When someone fills out the form and posts it, the title of the post is always in this format:
DD-MM-YY(HR:MIN:SEC)
Can I change that so that the title says something else besides the date and time?
When someone fills out the form and posts it, the title of the post is always in this format:
DD-MM-YY(HR:MIN:SEC)
Can I change that so that the title says something else besides the date and time?
Also, I want to remove the line that says:
"This post was submitted by ______"
I figured out the second problem.
I'm looking how to do this too.
Read this link ->
http://thedeadone.net/forum/?p=418#comment-1542
<?php
/* assuming you have called the custom field key "name"... */$post_title = get_post_meta($post_id, 'name', true);
$postdata = array(
"ID" => $post_id,
"post_title" => $post_title;
sanitize_post($postdata,"db");
wp_update_post($postdata);
?>
I am trying to figure out how to make it work but I am having no luck. It is just removing my custom field "name" all together.
I figured it out. Add a ) after $post_title
After that it works perfectly. Thank you
You must log in to post.