• Resolved rachaellt09

    (@rachaellt09)


    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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter rachaellt09

    (@rachaellt09)

    Also, I want to remove the line that says:

    “This post was submitted by ______”

    Thread Starter rachaellt09

    (@rachaellt09)

    I figured out the second problem.

    theimben

    (@theimben)

    I’m looking how to do this too.

    linusj

    (@linusj)

    Read this link ->
    https://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);
    ?>

    Thread Starter rachaellt09

    (@rachaellt09)

    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.

    Thread Starter rachaellt09

    (@rachaellt09)

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: TDO Mini Forms] Title of post’ is closed to new replies.