Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Can’t get buttons to populate

$
0
0

Replies: 0

Hello,

I’ve created my template and it’s working great, save for the fact I can’t get the purchase or good reads buttons to work. I’m admittedly not super great with php, but can usually edit. I’m sure I’ve made an obvious mistake, but was wondering if you could tell me where I went wrong?

$book = new Novelist_Book( get_the_ID() );

if ( $book->title ) {
    echo '<h2>' . esc_html( $book->title ) . '</h2>';
}
if ( $book->series_name ) {
    echo '<h3>' . ( $book->series_name ) . '</h3>';
}

    echo '<blockquote class="novelist-synopsis">' . wpautop( $book->synopsis ) . '</blockquote>';

?>

<div id=“amazon”><?php echo $book->purchase_links; ?></div>
<div id=“goodreads”><?php echo $book->goodreads_link; ?></div>

This returns the text “Array
http://www.goodreads.com/book/show/30318909-dark-blood


Viewing all articles
Browse latest Browse all 67836

Trending Articles