• I used the plugin source code mentioned in this comment
    https://wclovers.com/forums/topic/how-to-add-custom-post-types-to-your-store-manager-dashboard/#post-79940
    and I create 2 new custom posts

    1- the view links of the created custom posts,
    https://prnt.sc/1zw5stk
    it goes to website.com/?p={{post_id}} when I use permalink structure as “Post name”
    and in the same time when i go to the link it give a 404 page
    i tested : website.com/{{post_type_slug}}/{{post_id}} : it gave 404 page
    i tested : website.com/{{post_type_slug}}/{{post_slug}} : it gave 404 page

    2- also I need to set a custom template for the custom post types, so I create single-{{cutomposttype}}.php but this didn’t make any different

    I thought perhaps that because this new custom post type is private types but I didn’t find any way to check that or edit this option causes the code snippet which registers the custom post type doesn’t mention anything about the post type publicity

The topic ‘create custom post type in WCFM’ is closed to new replies.