popstalin
Member
Posted 4 months ago #
I'm using your plugin to allow visitors to make posts (as most people do). When a post is submitted, in the Dashboard, the titles of the post are the date and and a timestamp. Is there any way to change that? I've created a title field and used the following code in the append widget:
<?php
/* assuming you have called the custom field key "name"... */
$post_title = get_post_meta($post_id, 'unique_post_title', true);
$postdata = array(
"ID" => $post_id,
"unique_post_title" => $post_title;
sanitize_post($postdata,"db");
wp_update_post($postdata);
?>
on installations of tdo-mf submitted posts all have their own titles. you should look at your form widgets and make sure you have a 'content' widget and that in that widget you have "title" enabled and marked 'required'
popstalin
Member
Posted 4 months ago #
Thank you, nowhere that I could find told me that was a necessity.
seankelley
Member
Posted 2 months ago #
Very helpful, thanks!
Any ideas on how to use a post excerpt as the title? A couple of us were thinking it might be a nice replacement for the timestamp and user generated title.
http://wordpress.org/support/topic/292795?replies=2
I think the Append to Post Content widget would be your answer here. This widget gets executed after the post has been created, so you can put code in their to modify the post title however you like.
See this for an example.
If I had oddles of time I'd create a "Title" widget that would allow you some more flexibility over how the title is generated, but I find my time these days is rather short.
that is the date n title, but how to show website submitter which linked?
cos mine is only shows the address but it doesn't link
example : domain.com .... all i want is to make like this domain.com