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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.