Forums

[resolved] [Plugin: TDO Mini Forms] Title of post (7 posts)

  1. rachaellt09
    Member
    Posted 3 weeks ago #

    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?

  2. rachaellt09
    Member
    Posted 3 weeks ago #

    Also, I want to remove the line that says:

    "This post was submitted by ______"

  3. rachaellt09
    Member
    Posted 3 weeks ago #

    I figured out the second problem.

  4. theimben
    Member
    Posted 2 weeks ago #

    I'm looking how to do this too.

  5. Linusj
    Member
    Posted 1 week ago #

    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);
    ?>

  6. rachaellt09
    Member
    Posted 1 week ago #

    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.

  7. rachaellt09
    Member
    Posted 1 week ago #

    I figured it out. Add a ) after $post_title
    After that it works perfectly. Thank you

Reply

You must log in to post.

About this Topic