Gloabally Available Variables
-
Hi Guys.
I was reading the documentation over at https://torro-forms.com/api/ but I could not find topics to address the following questions.
1.) How to get current active forms that are not expired to display in my template without using
<?php echo do_shortcode('[form id="512"]') ?>
2.) Is there a global variable that I can hook into and display on my theme sidebar to tell logged in users that they have a form to fill out?
3.) Can I expire the whole form like we once did for https://www.ads-software.com/plugins/questions/ I do not see the options on the right hand side?
###My Template file
<?php /** * Template Name: ..... */ get_header(); $current_user = wp_get_current_user(); ?> <div class="content"> <div class="left"> <?php echo do_shortcode('[form id="512"]') ?> <?php // Pseudocode // What I want to do. Get Active forms without using a shortcode and editing code // Because, we will add another form in three weeks. get_active_forms_that_are_not_expired(); ?> </div> <div class="right"> <?php get_sidebar(); ?> </div> </div><!-- Content --> <?php get_footer(); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Gloabally Available Variables’ is closed to new replies.