• Resolved tjobbe

    (@tjobbe)


    I have downloaded and installed mimbo2.0 – a custom wordpress theme.

    Part of the theme uses custom fields to define an image (thumbnail) for the home page, the custom field is called “Image”.

    The home page has two sections where I can add the custom Image field, the left side and the right side. Both sides are essentially different categories, showing a snippet from the latest X posts and whatever image I have defined.

    I want to be able to have a new custom image field for these posts, so that I can choose to have a post in both categories if I need.

    How do you create a custom image field?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Add this to your index.php file where you want the custom image to be displayed:

    <img src="<?php echo get_post_meta($post->ID, "custom-image", true); ?>" alt="<?php the_title(); ?>" />

    Then add a custom field in the write post section with the key value of “custom-image” and the value of the URL of your image.

    Thread Starter tjobbe

    (@tjobbe)

    Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question about custom fields’ is closed to new replies.