Thread Starter
kh_dev
(@kylelanstead)
That doesn’t work. That removes all formatting and adds dashes between the words.
Thread Starter
kh_dev
(@kylelanstead)
Can this be used if I have a custom table? I.e. a table names ‘articles’? I have combined the posts from multiple WordPress sites (multi site install) and put them into a single table.
Thread Starter
kh_dev
(@kylelanstead)
$conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
$sql = “SELECT * FROM wp_posts WHERE ID = ‘461’;”;
$result = $conn->query($sql);
while($row = $result->fetch_assoc()) {
echo $row[“post_title”];
}