• Hello,

    I’d like to add featured image option in Truly Minimal theme.
    I’m not a programmer, but I read some generic instructions of how to add featured image option in any theme.
    So, I modified functions.php of Truly Minimal to add these lines at the end of that file:

    if ( function_exists( 'add_theme_support' ) )
    add_theme_support( 'post-thumbnails' );

    Result is bad, because now, after export some post from Truly Minimal to another WP with a different theme that support Featured Images, the images shown are others than I put as Featured Image.

    I’ll appreciate any help here.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    What do you mean with different images? Different image content or different sizes?

    The featured image should be the same because it’s set in the dashboard

    featured image

    Moderator bcworkz

    (@bcworkz)

    The post’s featured image is stored only as an attachment ID. If a different site is not a perfect clone of yours, the attachment IDs will relate to different images.

    Thread Starter argie01

    (@argie01)

    Thank you Luis and bcworkz.

    Indeed, after I added that code in Truly Minimal I followed these steps:

    1. Insert featured image into posts in Truly Minimal
    2. Export those posts from Truly Minimal
    3. Import those post into the new web, selecting image importation, too.

    The result is those new posts in the new web have a featured imaged, but this is not right. Because this image was taken apparently in a random way from the already existing images in the new web.

    Is there a way to fit it? is the code I wrote into Truly Minimal right?

    Thank you.

    Moderator bcworkz

    (@bcworkz)

    Your code for adding theme support is correct. Supporting featured images in a theme is unrelated to importing posts into a different site. Any time anyone imports a post into a different site, they will need to make adjustments. Internal references will be different. Image IDs for featured images and gallery shortcodes will be different. Even image names could be different, if the same images are even available. With the same images, the registered sizes could still be different. Even the post slug could be different if there’s already another post using that slug. Any other shortcodes used may not exist.

    Unless the same theme is used, different templates will be used, which may have additional or lack certain information. There is nothing in a typical theme that will allow seamless importing of one post into another site.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Truly Minimal Featured Image’ is closed to new replies.