Title: Changing Custom Values
Last modified: August 19, 2016

---

# Changing Custom Values

 *  [Jabbok](https://wordpress.org/support/users/jabbok/)
 * (@jabbok)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/changing-custom-values/)
 * I’m using the Arthemia theme which I like a great deal but I want to change one
   feature.
    The theme is designed to be a hybrid between a standard blog and a 
   magazine theme. To add pictures to any area on the front page you have to use
   the Custom Field which is preset to the value of “Image” – as you can see below.
 * I want to change this section of code so that I can post YouTube Videos on the
   front page.
 * I’m sure it won’t be as simple as changing “Image” to “Video” and posting a link…
   will it?
 * Any help would be appreciated.
 *     ```
       <?php	$values = get_post_custom_values("Image");
       	if (isset($values[0])) { ?>
             <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
       	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
       $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=150&h=150&zc=1&q=100"
       alt="<?php the_title(); ?>" class="left" width="150px" height="150px"  /></a>
       <?php } ?>
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Peter Boosten](https://wordpress.org/support/users/pboosten/)
 * (@pboosten)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/changing-custom-values/#post-1177208)
 * The word ‘Image’ in this context is meaningless: it could have been ‘Bycicle’
   for that matter, as long as the word is the same in both the post (your Custom
   Field) and the coding in the php.
 * What will give you the headaches (or not) is the img tag: that’s designed to 
   display images, not videos. You’ll have to change that into something appropriate(
   don’t know what that would be, but certainly not <img>)
 * Peter
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/changing-custom-values/#post-1177239)
 * There are numerous plugins for embedding youtube videos, and i think they would
   be better suited in this case.
 * Have a look here.
    [http://wordpress.org/extend/plugins/tags/youtube](http://wordpress.org/extend/plugins/tags/youtube)
 * Plugins in some cases are just glorified functions, and alot would work as seperate
   theme functions to, so don’t feel because it’s a plugin it’s any less valid as
   a method to archive whatever you need..
 * I tend to have one rule when it comes to plugins, if it’s not lightweight, i’m
   not using it… and it’s served me well to date… (then i only use 2-3 minor plugins)..
 *  Thread Starter [Jabbok](https://wordpress.org/support/users/jabbok/)
 * (@jabbok)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/changing-custom-values/#post-1177424)
 * The problem I’m running into is that this theme is a hybrid. The front page functions
   like a magazine theme.
 * ALL images are posted via the “Custom Field” box.
    ALL images are pre-assigned
   to a specific size and formatted to that size via the tim-thumb plugin.
 * There is no option to place a video on the front page. I can add one to the article
   and it will be there once a visitor clicks on the front page link but they won’t
   have access to the video until they go to the page.
 * I want the video to replace the image.
 * I really like the overall appearance and functionality of this theme. I just 
   want the added functionality of placing a video on the front page.
 * I tried the wp-youtube plugin without success.
    I’ve also looked at the videographer
   theme – I may end up going to it but I’d rather not.
 * Any more ideas?
 * Thanks for the help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing Custom Values’ is closed to new replies.

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jabbok](https://wordpress.org/support/users/jabbok/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/changing-custom-values/#post-1177424)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
