• Hi everybody;

    I’d like to ask you about some problems that I have with Wynton Magazine Theme and its custom fields.
    This theme is prebuilt with custom fields. I’m not used to using custom fileds but I think I’m doing it the right way. The author gives the keys of the c-fields:

    Here′s a list with all custom fields for WyntonMagazine

    Leadimage = The big image on the homepage
    featured-article-image = The three smaller images on top right of the homepage […]

    The value in this case is an URL. I’m testing in a localhost with absolute and relative paths but with no results.

    I’m wondering if there is something wrong in the code. I would appreciate if you can check it out for me. This is the code in index.php:

    <?php
    // this is where the title of the Lead Story gets printed
    	the_title(); ?>
                </a> </div>
              <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/';
    // this is where the Lead Story image gets printed
    	$values = get_post_custom_values("Leadimage"); echo $values[0]; ?>" alt="image" id="leadpic" /></a>
              <?php
    // this is where the excerpt of the Lead Story gets printed. It′s reccomended you use the optional excerpt in the write post panel.
    	the_excerpt() ; ?>

    Do you have any clue of what is failing?

    Thank you very much,
    From madrid,
    Roy

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try this…

    Go into Settings > Miscellaneous >

    and then uncheck “Organize my uploads into month- and year-based folders”

    Via FTP, go into your uploads (wp-content/uploads by default) and put all your images into the root of uploads.

    echo get_option('upload_path'); From what I can see, if you have that organize my uploads option turned on, there would be no way for it to know when you uploaded the Leadimage and the path would be incomplete.

    Also, it is assuming that you are uploading using WordPress.

    If you are not using the WordPress media gallery and are uploading your images manually the easy way to fix this would be to put your images in the upload path or change your upload path to where you are putting your images.

    The harder way would be to modify the theme if you needed to keep these uploads and your media gallery separate.

    From that point all you should have to put in the custom field is filename.jpg (case sensitive)

    Thread Starter dedalos

    (@dedalos)

    Hi Bekabug;

    Thank you for your tips. But the first way I used to link the image it was with an absolute path. The URL of the image was OK (I test it in the browser) but it doesn’t works in the custom field.

    I don’t use the media gallery or uploads from wordpress either (but in this case I tried this option too). In other themes I have linked images from other webs (flickr, for example) with absolute paths without problems.

    If it’s not working with an absolute path (I try relative also), probably the problem is not in the path…

    I give you the download link of the theme if you want to check it out:
    Demo
    Download

    * I’ve been tried what you say…, with no results.

    Kind Regards,
    Roy

    PD If you want check it out , for the Lead-main post to appear it has to be in a category with ID=1. This the ID number of “uncategorized” by default.
    I fill the custom field with “Leadimage” ID and URL inside the first post of the category with ID=1. (this should be the Leading post).

    Thread Starter dedalos

    (@dedalos)

    Please, Can somebody help me?

    Sorry I didn’t see the replies.

    https://wp-themes.der-prinz.com/wyntonmagazine/wp-content/uploads/2008/02/leadimage.jpg

    Ok. If you look at that link, you can see that it’s going to uploads/2008/02. You need to turn that off. Next, upload a file named testinglead.jpg

    When you fill in the custom field you just put in the file name. No path. No http. Nothing but the file name.

    testinglead.jpg

    If you put the full path in the custom field the source of the image is going to look like https://wp-themes.der-prinz.com/wyntonmagazine/wp-content/uploads/https://wp-themes.der-prinz.com/wyntonmagazine/wp-content/uploads/2008/02/leadimage.jpg

    Which, for hopefully obvious reasons, won’t work. The theme is already telling wordpress the path it needs to look for the image, you just need to tell it which image.

    Make more sense?

    Thread Starter dedalos

    (@dedalos)

    I love you Bekabug!

    It was not so complicated…, but as I can’t understand php… I didn’t find out the problem.

    Thanks again,
    Roy

    jenmarlin

    (@jenmarlin)

    Hi! I have the same problem I think – I have set up Wynton and posted one post to be the lead story until the rest is done. But the image won’t show on the frontpage. Could you help me? I’ve tried turning the year/month format off, but it didn’t help.
    Here’s my site.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom fields not working – Wynton Magazine theme’ is closed to new replies.