Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

breakuppedia on "User Submitted Posts Plugin"

$
0
0

haha now the whole site's not loading.
only the header's left.
This is the current code i have on

<?php global $wpdb;
     $query = "SELECT 'ID', 'guid' FROM '$wpdb->posts' WHERE 'post_type' = 'attachment' AND post_parent = '{$post->ID}'";

if ($attachments) {
if (post_parent = '{$post->ID}'){
 $adimages = $wpdb->get_results($wpdb->prepare($query), OBJECT);
 // To display the first image.. ?>

<img style="float: left; height: 380px;border: 2px solid #464646;" src="<?php if(is_public_submission()){echo $adimages[0]->guid;} ?>" />
<?php }
?>

Viewing all articles
Browse latest Browse all 26892

Trending Articles