• Hi, is it possible to add new custom post type instead of default wordpress post.
    To achieve this I changed wp-content/plugins/accesspress-anonymous-post/inc/cores/save-post.php line 113, and added an option instead of ‘post’:
    $post_arguments = array( ‘post_type’ => ‘post’,
    ‘post_title’ => $ap_form_post_title,
    ‘post_content’ => $ap_form_content,
    ‘post_status’ => $publish_status,
    ‘post_author’ => $author
    );
    to:
    $post_arguments = array( ‘post_type’ => get_option(‘accesspress-post-type’),
    ‘post_title’ => $ap_form_post_title,
    ‘post_content’ => $ap_form_content,
    ‘post_status’ => $publish_status,
    ‘post_author’ => $author
    );

    but it would be great if you add this to the plugin, then I can update it without worry

    • This topic was modified 7 years, 1 month ago by arashonline.
    • This topic was modified 7 years, 1 month ago by arashonline.
Viewing 2 replies - 1 through 2 (of 2 total)
  • HI there,

    Thank you for writing in,

    Sorry, it is not possible with only the code that you have provided. It needs to do complex modification on the plugin to add a new custom post type.

    Regards!!

    too bad! it is really needed to add these post as custom post types, so we can display them in a different page

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom post type’ is closed to new replies.