WordPress.org

Ready to get started?Download WordPress

Forums

Chiron
Adding Post Thumbnails (5 posts)

  1. terrace_29
    Member
    Posted 1 year ago #

    I'm using the recent posts as my landing page, I would like to add the thumbnail to the excerpt. I've added to the function.php, but not certain if there is something to be added to another script, the 'featured image' field is not showing in edit posts either. My current image is embedded into the post

    /** Add theme support for Feed Links. */
    	add_theme_support( 'automatic-feed-links' );
    
    	/** Add theme support for Custom Background. */
    	add_theme_support( 'custom-background', array( 'default-color' => 'fff' ) );
    
    	/** Set content width. */
    	chiron_set_content_width( 640 );
    
            <strong>/** Add theme support for Post Thumbnail. */
            add_theme_support( 'post-thumbnails' );</strong>
    
    	/** Add custom image sizes. */
    	add_action( 'init', 'chiron_add_image_sizes' );

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  2. paulwpxp
    Font hero
    Posted 1 year ago #

    Looking at the code of this theme ( not the one posted in the OP but from the theme's svn ) it already does that for you.

    All you need to do is configure it under Theme Setting page. Choose to display excerpt and the featured image will automatically display.

  3. terrace_29
    Member
    Posted 1 year ago #

    All you need to do is configure it under Theme Setting page. Choose to display excerpt and the featured image will automatically display

    I wish that was the case but it is not, something is amiss or not configured properly. There is no 'featured image' widget in the post sidebar, I'm adding the image manually embedding it into the post. The landing page displays text only excerpts.

  4. paulwpxp
    Font hero
    Posted 1 year ago #

    Do you mean you can't assign image as featured due to missing UI ?

    If that's so, while editing post, pull down the Screen Option Tab over at the top and checkbox on Featured Image.

  5. terrace_29
    Member
    Posted 1 year ago #

    Thank you for your reply, I've been able to set the thumbs, I'm still not certain on the alignment, but I'm on the right path.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.