• Resolved rafafallo

    (@rafafallo)


    Hello,
    I am using BuddyPress and your post on WordPress 5.4.1 (currently). I have defined two custom post types (publications and news), and their corresponding forms in your plugin. Then I have created a new tab in member page to show the user’s publications in a subnav using [wpuf_dashboard post_type="publication"], and to create a new publication in other subnav, using [wpuf_form id="publications-form-id"]. Now, everything works well setting publications form as fallback, but

    1. I have two separate pages for creating and updating publications
    2. The editing page is predetermined to edit publications, and need it to choose the right form depending on the post type

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rafafallo

    (@rafafallo)

    Well, I pressed the wrong button (Install WPUF Pages) and things got messed up. Firstly, the dashboard uses as default form one that does not exist (id = 100000827).

    I have discovered that the editing page works well with posts edited using your plugin (point 2 above), but I have several ones that have created before installing your plugin. How can I associate them with the corresponding form?

    Thread Starter rafafallo

    (@rafafallo)

    Well, I got it. Your posts are tagged with the form id. Somehow the form id changed, so now the post is not associated to the current one. But, isn’t it to risky to associated posts with forms id’s instead of a slug or something it can be reassigned to other form?

    Thread Starter rafafallo

    (@rafafallo)

    Sorry about the mess. Here it is the current situation: I am using BuddyPress and your post on WordPress 5.4.1 (currently). I have defined two custom post types (publications and news), and their corresponding forms in your plugin. Then I have created new tabs in BuddyPress members page, per post type. Then created subnavs to list the user’s publications/news using [wpuf_dashboard post_type="publication/news"], and subnavs to create new publications/news using [wpuf_form id="publications/news form id"]. Now, everything works well, but

    1. I have separate pages for creating and for updating publications/news.
    2. I have publications and news listed but not editable, because they were created before the installation of the plugin
    3. I cannot make the tabs visible to other users, because they include current user posts (publications or news), not the ones of the profile owner.

    That’s it.

    Hello @rafafallo,

    Yes it will be in separate page for creating publication or news type posts because the shortcodes are pasted in separate page. When you want to create the post, there you have to paste the post form’s shortcode and for edit/update you have to use the dashboard page shortcode.

    In order to edit the publication type post or news type post, you have to add the shortcodes like this:

    [wpuf_dashboard post_type=”publication”]

    [wpuf_dashboard post_type=”news”]

    Next, please check the basic post-editing settings are correctly configured:

    ?In order to edit the custom post type post from the dashboard page, you have to make sure the following points:
    ?
    ?1. Edit Page: From this drop-down select the page where [wpuf_edit] shortcode is located. Please check the screenshot. If you do not have such a page, please create a page with the shortcode [wpuf_edit] and then save the page and then set the page here.
    ?
    ?2. Set yes to edit: Please set yes here.
    ?

    When you say “I cannot make the tabs visible to other users, because they include current user posts (publications or news), not the ones of the profile owner.” – which tabs you are referring to?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edit page for different post types’ is closed to new replies.