• Hello everyone!

    I am trying to override the displayed posting date on my blogroll with a date entered into two custom fields in each post. My blog is located at https://sincitysetlists.com. Here is a screen shot of the date that I am trying to replace: https://goo.gl/98s520. Also, here is a screen shot of the custom fields in the post: https://goo.gl/UwCBQe.

    The code in the entry.php file reads:

    <div class="entry <?php if ($biglayout) echo('big'); else echo('small');?>">
    			<div class="thumbnail">
    				<a href="<?php the_permalink(); ?>">
    					<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
    					<span class="overlay"></span>
    				</a>
    				<div class="category"><?php the_category(); ?></div>
    				<span class="month"><?php the_time('M'); ?><span class="date"><?php the_time('d'); ?></span></span>
    </div> <!-- end .thumbnail -->
    			<h2 class="title"><a>"><?php if ($biglayout) truncate_title(50); else truncate_title(20); ?></a></h2>
    			<p class="postinfo"><?php esc_html_e('posted by','TheStyle'); ?> <?php the_author_posts_link(); ?></p>
    			<div class="entry-content">
    				<div class="bottom-bg">
    					<div class="excerpt">
    						<p><?php if ($biglayout) truncate_post(650); else truncate_post(295); ?> </p>
    						<div class="textright">
    							<a>" class="readmore"><span>?</span>?</a>
    						</div>
    					</div><!-- end .excerpt -->
    				</div><!-- end .bottom-bg -->
    			</div><!-- end .entry-content -->
    		</div><!-- end .entry -->

    I am not sure what code to replace the <span class="month"><?php the_time('M'); ?><span class="date"><?php the_time('d'); ?></span></span> section to properly call the data in the custom fields and I wonder if you kind folks could help me out!

    I hope this is enough information, but if it isn’t, please let me know and I’ll be happy to provide more. Thanks in advance for all of your help!

  • The topic ‘Using Custom Fields on blogroll page in custom theme’ is closed to new replies.