Can’t get buttons to populate
-
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” followed by the URL for Goodreads, not the button I uploaded per the instructions that works splendidly if I use the regular template.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Can’t get buttons to populate’ is closed to new replies.