Skip to main content

Timeline for Help with Post Meta

Current License: CC BY-SA 3.0

3 events
when toggle format what by license comment
Apr 13, 2011 at 23:21 comment added Rarst @ryan this seems to be copy of snippet you had already posted in question, it doesn't help much. You need to explain what condition exactly you want to implement and how related data is stored in meta.
Apr 13, 2011 at 23:21 comment added user4649 Hi, This code, outputs all the logos. <?php query_posts( 'post_type=brands&orderby=title&order=ASC&posts_per_page=-1' ); $i = 0; if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <li id="feature<?php echo $i; ?>"><a href="<?php the_permalink(); ?>" rel="<?php echo $i; ?>"><img src="<?php echo get_post_meta( $post->ID, 'brand_logo_sm', true ); ?>" /></a></li> <?php $i++; endwhile; wp_reset_query(); ?> I only want it to display the logos if the "industry" gets outputted using this code: <? $post_meta = get_post_meta( $post->ID ); ?> is equal to X Thant make sense?
Apr 13, 2011 at 23:12 history answered Rarst CC BY-SA 3.0