Support » Plugins » Conditional Tags Help when editing plugin – PLEASE HELP

  • I’m going crazy here! I need help. I’m using the plugin WP User Frontend. It allows users to fill out forms and upload files and then saves it as a post for me to publish. However, I want to edit the plugin code to be able to not only allow logged in users to post, but also guests.

    Here’s the conditional tag as it is now:

    ob_start();
    
            if ( is_user_logged_in() ) {
                $this->post_form( $post_type );
            } else {
                printf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( get_permalink(), false )
            }
    
            $content = ob_get_contents();
            ob_end_clean();

    I changed the else to the same thing as is for if is_user_logged_in, and it shows the form and the text submits, but the image isn’t getting carried through to the post like it does when I’m logged in.

    Thanks in advance for the help.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional Tags Help when editing plugin – PLEASE HELP’ is closed to new replies.