I've been trying to get information from WP for a while now and I still can't get it to work. What I'm trying to do is to get the information from an online resume and display it on the site.
The problem is that I haven't worked with WP a lot before and I can't figure out if there is a better way than SQL extraction to get that information.
This is the code I have now, it's very simple but doesn't work.
$output = '
<link rel="stylesheet" type="text/css" href="style1.css">
<h1 class="title">'.the_custom_field('_candidate_name', 144).'</h1>
<li id="fullName">//This is where the name should go</li>
<li id="adress">//I want to fetch the adress and echo it here etc.</li>
<img src="mVqghXM.jpg" height="auto" width="100px">
Use three files in your custom php file to get and use all wordpress function. Try this.
include_once("/path/to/wordpress/wp-config.php"); include_once("/path/to/wordpress/wp-load.php"); include_once("/path/to/wordpress/wp-includes/wp-db.php");