I am creating a small plugin shortcode which appears to work ok except the number 1 appears below the output
This is the code I am using to extract the data from the wp database table and wish to display on a wordpress page.
global $wpdb; $result = $wpdb->get_row ( 'SELECT * FROM wp_lb_person WHERE id = "'.$id.'"'); echo $result->first_name. " " . $result->family_name. "<br />"; echo $result->date_of_birth."<br />"; echo $result->date_of_death."<br />";
The output to the page is below
Any ideas would be appreciated
- The topic ‘Number keeps appearing below plugin shortcode output’ is closed to new replies.