Featured Image not appearing

Hot WordPress Themes Support Forum WordPress Themes Sportal Featured Image not appearing

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #698
    David Trounce
    Participant

    Hi,

    I am not able to get featured images in post excerpts to appear any where on my sportal WordPress blog.

    Any help would be appreciated.

    #1814
    milos
    Moderator

    Hello,

    This old theme doesn’t support featured images, but you can add this feature easily if you follow this http://codex.wordpress.org/Post_Thumbnails

    So, you should add this line in functions.php

    Code:
    add_theme_support( ‘post-thumbnails’ );

    Then, you can add this code anywhere you like featured images to appear.

    In example, you can add this code in file main.php:

    Code:
    if ( has_post_thumbnail() ) {
    the_post_thumbnail();
    }

    In example, you can add this code in file main.php above line

    Code:
    get_template_part( ‘content’, ‘single’ );

    to show it on single pages or above line:

    Code:
    get_template_part( ‘content’, get_post_format() );

    to show it on other pages.

    Thanks

    #1815
    David Trounce
    Participant

    Thanks Milos. Perfect.

    I notice you use the words “Old Theme”. Is this theme still being maintained with upgrades? If not, could you suggest another of your themes most likely to be compatible?

    I am wanting to keep my themes as up-to-date as possible.

    Thanks.

    #1816
    milos
    Moderator

    Yes, we are updating all our themes. If there are compatibility issues with latest WordPress version, we are fixing them and release updates for all themes, including Hot Sportal.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.