WordPress.org

Support

Support » Themes and Templates » [Resolved] Front Page Featured Section

[Resolved] Front Page Featured Section

Viewing 3 replies - 1 through 3 (of 3 total)
  • Found a fix

    Cheers

    Could you share your fix please? I have same query

    @rob4236

    Hi there,

    We created a custom field for the featured image… Added this to front-page.php

    <div class="page_text_container">
    					<?php if( get_field('url_for_featured_image') ): ?>
    				<a href="<?php the_field('url_for_featured_image'); ?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?></a><?php endif; ?>
    					<h1 class="entry-title"><a title="<?php the_title_attribute(); ?>" href="<?php the_field('url_for_featured_image'); ?>"><?php the_title(); ?></a></h1>
    					<?php the_excerpt(); ?><a class="more-link" title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><?php _e( 'Read more','radiate' ); ?></a>
    				</div>

    Hope this helps

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Front Page Featured Section’ is closed to new replies.