Forums

a button to create a custom post (3 posts)

  1. byronyasgur
    Member
    Posted 1 year ago #

    is this possible . all i need is to be able to call register_post_type from inside a function but it wont work for me without add_action - sorry maybe i'm not that well up on how add add action works but i didnt think it was mandatory to call register_post_type via add_action ... can someone please help me ? even a rough pointer in the right direction might be enough

  2. byronyasgur
    Member
    Posted 1 year ago #

    sorry this should have been titled a button to register a custom post type - and i know i can use a plugin but i need it in the code, thanks

  3. byronyasgur
    Member
    Posted 1 year ago #

    got this working in case it's of any help to anyone - you have to use the form to set an option in the options table ( eg the name of the custom post type) and then fire a function via init to check for this option and IF it exists THEN register_post_type

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.