Form shown to register users

  • Panos Karakontakis

    #6359

    Thanks for the great theme first of all.

    I want to create a form that will include an order for some products. The point is that the form should appear only to registered users. I ask this at your forum because you will know the plugins that are most suitable to your theme in order to do that. I would appreciate if you guide me how to start.

    Sorry for the bad English.

    Josh

    #34098

    I use Fast Secure Contact Form by Mike Challis… but I don’t know if there is an option to only display the form to logged in users.

    Contact Form 7 appears to be another popular choice.

    Prasanna SP

    #34099

    I’d create a custom template with this code and use that template for contact form page.

    <?php
    /**
    * Template Name: Contact Form Template
    *
    * A custom page template to show contact form only for logged in users
    */
    get_header(); ?>

    <?php if ( is_user_logged_in() ) : ?>

    <?php
    the_post();
    get_template_part( 'loop', 'page' );
    ?>

    <?php endif; ?>

    <?php get_footer(); ?>

    Josh

    #34100

    Haha… Prasanna… thinking outside the box again 😉

    Yep, use Prasanna’s suggestion.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.