Line Not Pulling In With Custom Field Template
-
Well I have tried multiple different things and I am having trouble getting this figured out and need some help. Website is spectaclip.com.
I am trying to insert the text from “bottom” on the custom field template into the bottom of the buy button on the webpage. I think I have it setup right but I am not able to get it to show up.
Here is what I have –
In Custom field template:
[bottom] type = text size = 35
In PHP:
<?php get_header(); ?> <div id="wrapper"<?php if (is_front_page()): ?> class="home"<?php endif; ?>> <?php slideshow_loop(1, 'home_slideshow.php'); ?> <div id="hp-content"> <div class="inner"> <div id="video"> <p class="video-title"><?php echo get_post_meta($post->ID, 'video title', true); ?></p> <p class="hp-para"><?php echo get_post_meta($post->ID, 'paragraph', true); ?></p> <?php if (have_posts()): while (have_posts()): the_post(); $content = get_post_meta($post->ID, 'video shortcode', true); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); _e($content); endwhile; endif; wp_reset_query(); ?> <a href="<?php bloginfo('url'); ?>/shop/spectaclip/"><p class="buy-now"><?php echo get_post_meta($post->ID, 'buy button text', true); ?></p></a> <p class="bottom"><?php echo get_post_meta($post->ID, 'bottom', true); ?></p> </div> </div> <?php slideshow_loop(1, 'home_slideshow.php'); ?> <div class="cf"></div> </div> </div> <?php get_footer(); ?>
In CSS:
p.bottom { font-size: 16px; font-weight: 600; line-height: 18px; padding: 5px 20px; text-align: center;
Thanks for help in advance!
Adam
- The topic ‘Line Not Pulling In With Custom Field Template’ is closed to new replies.