Can’t add custom post type form into dashboard
-
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)
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.