WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Create custom "add new post" with predefined values for title etc. (3 posts)

  1. Tuppaloprobe
    Member
    Posted 3 years ago #

    I have made a system of sorting certain posts by using custom fields.
    Sorting by date in the title and including only post with a certain custom field.

    The challenge with this system is that when you are generating a post and adding the custom fields and the title and the slug you have to write exact with no error. The thing with the title and the slug is also a challenge the title and the slug has to be 100% the same and if you don't know how it works it is easy to make them different.

    What i need is or wondering if is possible is to make a custom "add new" post function and tab and in some way make predefined values that you can choose and add to custom fields, slug and title.

  2. MichaelH
    Member
    Posted 3 years ago #

    http://wordpress.org/extend/plugins/default-post-content/

    this plugin also might help but it's not available through the normal extend repository:
    http://plugins.svn.wordpress.org/post-template/trunk/

  3. Tuppaloprobe
    Member
    Posted 3 years ago #

    I found these functions and i think i can make something out of them. Within a templatepage or somthing.

    <?php wp_insert_post( $post ); ?>
    <?php wp_publish_post( $post_id ) ?>
    <?php add_post_meta($post_id, $meta_key, $meta_value, $unique); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic