radassamber
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [Contact Form 7] Shortcode not working in custom page templateIm having a similar issue but with a different page template using a plugin called simple staff list. The shortcode displays fine on one page and doesnt work on another – thats using a different template. I dont know where to add in <?php the_content(); ?>
<?php get_header(); ?> <?php global $post; $custom = get_post_custom(); $t_name = get_the_title(); $name_slug = basename(get_permalink()); $title = $custom["_staff_member_title"][0]; $email = $custom["_staff_member_email"][0]; $phone = $custom["_staff_member_phone"][0]; $fax = $custom["_staff_member_fax"][0]; $bio = $custom["_staff_member_bio"][0]; $prof = $custom["_staff_member_prof"][0]; $fb_url = $custom["_staff_member_fb"][0]; $tw_url = 'https://www.twitter.com/' . $custom["_staff_member_tw"][0]; $li_url = $custom["_staff_member_li"][0]; ?> <?php if(has_post_thumbnail()){ $t_photo_url = wp_get_attachment_url( get_post_thumbnail_id() ); $t_photo = '<img class="staff-member-page-photo" src="'.$t_photo_url.'" alt = "'.$title.'">'; }else{ $t_photo_url = ''; $t_photo = ''; } $email_mailto = '<a class="staff-member-email" href="mailto:'.antispambot( $email ).'" title="Email '.$name.'">'.antispambot( $email ).'</a>'; ?> <div class="bios"> <div class="content"> <div class="row"> <div class="large-12 columns"> <?php while (have_posts()) : the_post(); ?> <h1><?php the_title(); ?></h1> <!-- This is the Standard page title --> </div> <div class="large-6 columns"> <?=$t_photo?> <!-- This is the Staff Memeber Photo --> </div> <div class="large-6 columns"> <h2><?=$title?></h2> <!-- This is the Staff Memeber Title --> <p class="staff-bio"><?=$bio?><?php the_content(); ?></p> <!-- This is the Staff Memeber Bio --> </div> <?php the_content();?> </div> </div> <?php endwhile; ?> </div><!-- #page-full --> <?php get_footer(); ?>
No idea here.
Forum: Plugins
In reply to: [Simple Staff List] Shortcodes working on list but not singleIt actually isnt recognizing any of my html from that text widget on that page
Viewing 2 replies - 1 through 2 (of 2 total)