• Resolved plnataskahuleni

    (@plnataskahuleni)


    Hello,

    I’m trying to add my custom post type “Praca” form into Account page. I found a solution with a code:

    add_filter( 'wpuf_account_sections', 'wpuf_product_page' );
    
    function wpuf_product_page( $sections ) {
    $sections = array_merge( $sections, array( array( 'slug' => 'submit-praca', 'label' => 'Prida? prácu' ) ) );
    
    return $sections;
    }
    
    add_action( 'wpuf_account_content_submit-praca', 'wpuf_product_page_section', 10, 2 );
    
    function wpuf_product_page_section( $sections, $current_section ) {
    
    	echo do_shortcode('[wpuf_form id="709"]'); 
    
    }

    It adds a section into Account page, but when I click it redirects me to a page /account/?section=submit-praca but the forms doesn’t show up. When I go to User Frontend -> Post Forms it says:

    Form Name: Prida? Inzerát Práce
    Post Type: praca
    Post Status: Published
    Guest Post: No
    Shortcode: [wpuf_form id="709"]
    

    What am I doing wrong, please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Saiful Islam

    (@saifislam01)

    Hi @plnataskahuleni,

    How to add custom post type form into dashboard?

    Adding a new tab on my account page developer documentation is currently deprecated with the latest version of the WP User Frontend Plugin. Please stay with us our development team will update it very soon.

    Hope you understand. If you have further queries regarding this issue,?kindly contact through?the website.

    Regards!

    Thread Starter plnataskahuleni

    (@plnataskahuleni)

    Thank you for your answer. Can I be somehow notified when it will be updated?

    Plugin Support Saiful Islam

    (@saifislam01)

    You’re most welcome. You may receive notifications when the documentation is updated.

    Please stay with us & keep patience.

    Have a good day!

    Hi. It seems I have the same issue. When I add a new custom post, I got the message “Incomplete request”. I can’t see the form for all the posts (Pages, Custom posts etc.). And I can’t even duplicate posts. Could you help please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t add custom post type form into dashboard’ is closed to new replies.