Genesis Responsible Slider: Pulling custom fields

Community Forums Forums General Discussion Genesis Responsible Slider: Pulling custom fields

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Susan 5 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #84113

    mediacampana
    Member
    Post count: 1

    will try to explain as simply as i can:
    I´m trying to modify the genesis responsive sider to pull before the title a custom field called “copete”
    So i went to genesis-responsive-slider.php and about line 629 i modify the code like this (added code is explianed in the code)

    Somehow it didnt work. What i am missing?
    Do i have to declare the custom field in functions.php?
    Can someone give me some tips?
    Thanks in advance.

    <?php if ( $show_excerpt == 1 || $show_title == 1 ) { ?>
    
    						<div class="slide-excerpt slide-<?php the_ID(); ?>">
    
    							<div class="slide-background"></div><!-- end .slide-background -->
    
    							<div class="slide-excerpt-border ">
    
    								<?php
    
    									if ( $show_title == 1 ) { 
    
    								?>
    								<!-- Add this to pull the custom field called copete -->
    								<p align="right" > <?php $key="copete"; echo get_post_meta($post->ID, $key, true); ?></p>
    								<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    								<?php 
    
    									}
    
    									if ( $show_excerpt ) {
    
    										if ( $show_type != 'full' )
    
    											the_excerpt();
    
    										elseif ( $show_limit )
    
    											the_content_limit( (int)$show_limit, esc_html( $more_text ) );
    
    										else
    
    											the_content( esc_html( $more_text ) );
    
    									}
    
    								?>
    
    							</div><!-- end .slide-excerpt-border  -->
    
    						</div><!-- end .slide-excerpt -->
    #91697

    Susan
    Moderator
    Post count: 7991
    This reply has been marked as private.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.