The [novelist-books] shortcode will help you create an archive of all your books.
Attributes
- series – Display only books in a certain series. Insert a comma-separated list of series IDs or names. Enter “none” to only display standalones that aren’t assigned to a series.
- genre – Display only books in a certain genre. Insert a comma-separated list of genre IDs or names.
- relation – AND | OR. Controls the relationship between the comma-separated list of series or genres (see above). For example, if you enter [novelist-books genre=”Contemporary,Romance” relation=”OR”] then the shortcode will show books in the Contemporary or Romance genres. If you change relation to “AND” then the shortcode will only show books that are in both genres.
- ids – Use this to display specific books by their ID number instead of a series/genre. Use a comma-separated list of book IDs.
- columns – Number of columns in each row. Defaults to 4.
- title – true | false – Whether or not to display the title of each book. Defaults to “false”.
- series-number – true | false – Whether or not to display the number of the book in the series. It prints like so: “Book 1”. Defaults to “false”.
- excerpt – true | false – Whether or not to display the excerpt of each post. The excerpt is taken from the synopsis. Defaults to “false”.
- full-content – true | false – Whether or not to display the entire set of formatted book content (includes cover, title, author, series, publication date, synopsis, etc.). Defaults to “false”.
- full-excerpt – true | false – Whether or not to display the entire synopsis. Defaults to “false”.
- button – true | false – Whether or not to show a button that says “More Details”. Defaults to “true”.
- covers – true | false – Whether or not to display the book cover of each book. Defaults to “true”.
- orderby – menu_order | title | date | publication | rand – How to order the results. Defaults to “menu_order”. ‘date refers to when the book was added in WordPress, while ‘publication’ refers to the book’s publication date.
- order – ASC | DESC – Order of the results. Defaults to “ASC”.
- pagination – true | false – Whether or not to include pagination. Defaults to “true”.
- number – Number of results per page. Defaults to “12”.
- offset – Number of books to offset (skip) from the beginning of the list.
Examples
[novelist-books genre="Contemporary,Romance" columns="5" title="true" excerpt="true"]
[novelist-books ids="57,3,12,987"]