WordPress.org

Ready to get started?Download WordPress

Forums

Now Reading Plugin (2 posts)

  1. BakingandBooks
    Member
    Posted 6 years ago #

    I installed the Now Reading plugin today and am in love with it, but I can't figure out how to add another library page with a list of all the books I've read. For instance, if you go to my library right now, I have it set to randomly show 25 books. But I also want the option for people to see all the books I've read in list form, like Viitoria has done underneath her "Recently Completed Reads" section here.

    Any ideas for how to do this? If you know please share!

  2. Anna Johansson
    Member
    Posted 6 years ago #

    Maybe you've already solved it but what the heck...! ;)

    Make sure you can run php in posts and pages and create a page with this in it:

    (this particular one gives you all books and ordered by author)

    <?php if( have_books('orderby=author&num=-1') ) : ?>
    
    		<ul class="library">
    
    			<?php while( have_books('orderby=author&num=-1') ) : the_book(); ?>
    
    				<li class="library">
     <a href="<?php book_permalink() ?>"><strong><?php book_title() ?></strong></a><br />av <a href="<?php book_author_permalink() ?>"><?php book_author() ?></a>
    				</li>
    
    			<?php endwhile; ?>
    
    			</ul>
    
    		<?php else : ?>
    
    			<p>Inget</p>
    
    		    <?php endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic