miriammp
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Hacks
In reply to: Pods Single Templatesolved
Forum: Hacks
In reply to: Pods Single Templatethanks 🙂 I’m trying 🙂
The code works perfectly, AND you got me to understand what I’m doing too.
Thanks loads again!Forum: Hacks
In reply to: Pods Single Templatewow, thanks so much for this lead. I’m so new to php, I was having a difficult time pulling up / understanding where to use the basics! Alright, so I was able to code most of it, as seen below. The only issue I’m having is with $website:
a) It doesn’t display as a clickable link. How would I incorporate the tag within the php?
b) I would love if http:// wouldn’t show up. As in, it should only say “ww.wp.xz.cn”. Is there a function for that?<?php get_header(); ?> <section class="wrap"> <div id="port-individual"> <section class="port_col_left"> <?php if ( get_post_meta( get_the_ID(), 'image_one', false ) ){ $image_array = get_post_meta( get_the_ID(), 'image_one', false ); } if ( $image_array ) { echo '<ul>'; foreach ( $image_array as $image ) { $class = "post-attachment mime-" . sanitize_title( $image->post_mime_type ); $thumbimg = wp_get_attachment_image( $image['ID'], 'large'); echo '<li class="' . $class . ' data-design-thumbnail">' . $thumbimg . '</li>'; } echo '</ul>'; } ?> </section><!--.port_col_left--> <section class="port_col_right"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2> <div class="entry"> <?php the_content(); ?> </div> <p><?php echo get_the_term_list( $post->ID, 'client', 'Client: ', ', ', '' ); ?> </p> <p><?php echo get_the_term_list( $post->ID, 'project_category', 'Category: ', ', ', '' ); ?> </p> <?php $website = get_post_meta($post->ID, 'website', true);?> <p><?php if($website != '') { echo $website; }?> </p> </div> <?php endwhile; endif; ?> </section><!--.port_col_right--> </div><!--#port-individual--> </section><!--.wrap--> <?php get_footer(); ?>Thanks again!!
Viewing 3 replies - 1 through 3 (of 3 total)