• Hello,

    Firstly, I have paid for a Templatic theme, and they do not provide support on the subject I am asking about.

    The theme allows users to list property for purchase or rent.

    I want to add custom fields to the user database, so that they might be able to add additional info.

    Right now, the user can add “bedrooms”, “bathrooms”. Lets say I wanted to add “Tv’s” which is stupid, but as an example.

    Im pretty saavy, I was able to get the site to look like they could add TV’s, and the post to act as if there was a spot for TV’s, I even think I coded the thing properly to get the info for an item called TV’s, but I think the database is being created without that item, so it never gets recorded.

    Where on my FTP is the bit where the custom database gets created? Where is this likely to be?

    Give me a hint, is it 100% somewhere in the template files? Can a template make changes to anything outside the template files?

    Im very sorry for my idiocy, thank you for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter danwsim

    (@danwsim)

    okay, I have made a little bit of progress,

    This line of code turns up nothing, or at least it appears that way to me:
    <?php echo get_post_meta($post->ID,’capacity’,true);?>

    Whereas this line of code turns up the result I need in the preview:
    <?php echo $proprty_capacity;?>

    I feel like I am taking crazy pills. Granted, I have no idea how either one of these works. Or why they work, but I copied how all of the other items were coming up.

    Best,
    Dan

    Thread Starter danwsim

    (@danwsim)

    Im trying to get the data with the following:

    <label>Capacity </label>
    <input type=”text” name=”proprty_capacity” id=”proprty_capacity” class=”textfield” value=”<?php echo esc_attr(stripslashes($proprty_capacity)); ?>” />

    seriously, is it a mispelling.

    btw, the data is a number.

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

The topic ‘editing custom fields in third party theme’ is closed to new replies.