Support

Account

Home Forums General Issues Database Reply To: Database

  • I found my custom field in the database with this code

    `<?php

    $mysql2 = new sql();
    $post_id = $_GET[‘id’];
    $sql2 = $mysql2->query(“SELECT * FROM wp_postmeta WHERE meta_key = ‘_campoadd’ LIMIT 1″,”mktiscom_cms”);
    $result2 = $mysql2->fetcharray($sql2);
    ?>

    <p><?php echo utf8_encode($result2[‘post_id’]); ?></p>
    <p><?php echo utf8_encode($result2[‘meta_key’]); ?></p>
    <p><?php echo utf8_encode($result2[‘meta_value’]); ?></p>`

    however my custom field is an image, and al so have the field data.(http://mkt-in.com.br/home/noticia2.php?id=marcenaria-piracicaba) Know how the image q can assign this field?