How to organize online books in WordPress (whether novels or non -novels)

Assuming that you have written (or are writing) a book. However, you decided to \”put it on the Internet\” instead of publishing in a traditional way. I don’t mean you make it into PDF e -books or digital books. I mean you decide to turn your book into a website.

WordPress may be very effective in this project, but WordPress that is used directly to open the box may not fully meet your needs. Therefore, in this article, we will discuss how to build your book in the WordPress environment.

Continue to read, or use the following link to jump:

    The object is gathered, and the person is divided by group

  • Why is it a post?

  • Establish your website

    • Change the post to meet your needs

    • Delete the date from your post

    • Publish posts in the order of time

    • Category for your chapters and main parts

    • Edit chapter structure (that is, category)

    • additional help plug -in

    • Custom menu creation

    • ] Display all parts

    • Order your post at the back end

    • Set your timestamp

    • An example

    • Add the previous and the next navigation [ 123]

    • Some plugins that need to be considered

The objects are gathered, and people are divided into groups

There are many ways to transform WordPress into a platform that is suitable for online books. Essence At the most basic level, you need to decide whether the post, page or custom post is used as your main building block. Each may be arguing, but in this tutorial, we will use conventional WordPress posts as the main construction block -that is, we will use posts to publish the content of our books.

Also pay attention Demand. Some may have a long chapter, and there may be many short chapters. Some may have many different parts in each chapter, while others completely abandon the chapter part. … And such an example is endless.

Therefore, the suggestion listed in this tutorial is -suggestion. You may have to change them to adapt to your specific situation,But at least, they should give you some ideas.

Why is a post?

The reason I chose to use POSTS in this tutorial is that you can usually use Posts more flexibly. Of course, you can make Pages and Custom Posts be as flexible as Posts, but this requires some extra work.

Establish your website

Okay, all the free statement is enough. Let’s start building a site.

Change the post to meet your needs

Although Posts has great flexibility, they have two characteristics you may not want:

[ 123]

They usually have a date on them.

  • They published in the backward order (that is, the latest posts appeared first).
  • Delete the date from your post

There may be some exceptions (such as those who write travel notes), but most people want to delete the date stamp from their posts. You can manually execute this operation (see this article).

Posted posts in the order of time

In addition to deleting the date stamp from your post, most people also hope that their posts will be published in the order of time (that is, the first post is kept on the top) Essence

For your chapters and main parts of use

Of course, the easiest way to organize all content may be the use of category functions.

If you divide your book into the main part (for example, part I, parts ii, part of the iii, part IV part), then you will need to classify each part.

In each category, you will create a subcate category for each chapter of this book (also known as subcate category). For example, I created a hypothetical book that contains four main and twelve separate chapters.

The outline of the book I assumed is as follows:

No. 1 Part -Birth (parent category)

Chapter 1 -January (Children’s Category)

    Chapter 2 -February (Children’s Category)

  • [ 123] Chapter 3-March (Children’s Category)
  • The second part-start

Chapter 4-April

Chapter 5-May

  • Chapter 6-June
  • 3rd Part-thick

Chapter 7-July Chapter 8-August

Chapter 9-September

  • Part 4-End

Chapter 10-October

Chapter 11-November [ 123] Chapter 12 -December

    This is the appearance of my category setting on the back end.

  • Edit chapter structure (that is, category)

Of course, you will want to plan things in advance as much as possible, but one of the benefits of the category is that they are easy to edit Essence You can easily change the child category to the parent category, and vice versa. You can also easily add new categories to parent categories, create subcate categories, etc.

Some people will want (or need) to pay more attention to categories and sub -categories than others. This depends entirely on the goals you want. However, at least some basic attention to this overall structure will lay a solid foundation for you behind the scenes. This solid foundation will make you more flexible on the road of moving forward, and make it easier for you to guide the visitors to browse your book (or provide them with clear navigation so that they can Jump and jump around without getting lost). additional help plug -in Writing is a messy thing, you often find that you need to add a part here or re -arrange several parts there. Because you will use your category on different chapters and parts on the website, this means you may want to re -arrange them at some time. By default, WordPress does not do so, but the category order and classification term descendant plug -in will allow you to do this.

Category sequence and classification terminology order screenshots. Custom menu creation Once you arrange the main parts and chapters of the book (that is, your parent category and subclass), you will want to display them so that your visitors can so as to be your visitors. You can clearly follow your text in the way you wantflow.

The perfect category structure will make you able to use many things flexibly (unable to list here, even unimaginable), but

Putting clear and simple navigation menu on your website It may be using WordPress custom menu system 分类订单插件截图.
(appearance \u0026 gt; menu)

When your category is logically layout of your back -end, they will also logically appear in your custom menu system, so that you can easily create easily to create The original menu and add a new part when needed.

See how clear the organization of my custom menu page is.

It is easy to create a custom menu that is also organized from there.

Then I can pull the custom menu to me In a small component on the sidebar.

(appearance \u0026 gt; small parts)

This is what it looks like in action.

Display all parts

Of course, different people will have different needs, but one thing that may be useful for some people is to be on the side The long column below the column also shows all your parts (that is, all your posts).

There are a few points to pay attention to this method. The first is that it does not divide your part into different chapters. It will simply list them in a column that is not distinguished. However, it lists your part from beginning to end (your post) from beginning to end -as long as you sort them correctly at the back end. (I will introduce it in detail later.)

You can use the default \”nearest post\” component and increase the number of posts to a high enough to contain the number of posts you own to achieve this Essence

(appearance \u0026 gt; component)

Look.

Order your post at the back end

As described at the beginning, one of the reasons for using Posts Over Pages Ordinary users provide more flexibility for use. Compared with Pages, one of the advantages of Posts is that they may be more likely to order and re -order large -scale … If you knowThe words of Tao. So what is the trick? Well, you may know that the post is sorted by the date. Whether you are in the order of time or counter -time order, WordPress will still check the date and time on the post to determine how to associate it with all other posts. Therefore, you can use the timestamp to get your post in the order you want.

Set your timestamp

If you write a post in WordPress and publish it immediately, the post will be labeled as the release at that time. However, you can change the timestamp on the post to any date. You can control the timestamp on the \”Writing/Edit\” page or \”Edit Post\” page.

At the beginning, my suggestion was

Published each post at least one day

. In this way, you can easily add the new part to any position in the existing list. All you need to do is to choose a time stamp between the time stamp on both sides.

An example

So, assuming that I started publishing a book on my website today (1 pm on May 9). I have written fifty different parts to be released; therefore, I want to set the time stamp of the first part to the past 50 days (1 pm on March 10). Then, for the second part, I set the time stamp to the past forty -nine days (1 pm on March 11). The third will be the past 48 days (1 pm on March 12) and so on.

In this way, if I decide to add a part before the first part, then I can easily choose a timestamp between two existing time stamps (that is, March 10, March 10 Before 1 pm on March 11th after day). Therefore, for example, I may choose to choose at 9 pm on March 10, but I still want to leave the open space on both sides to prevent me deciding to add another part.

When I do this The second part of the book, pushing the original second part to the third part … and continue in other parts.

(Note: If you are using a custom menu, then you may still need to manually add the new part to the navigation, depending on your setting method.)

Add to add and addOne and the next navigation

There is no doubt that another thing you want to do is to add a \”last and next\” navigation link to the bottom of the post. Some themes will include these links, but many themes are not, so we will quickly understand how to get them on your website.

You can search the plug -in that can perform this operation, but you can also manually add some code to the bottom of the theme Single.php file. (Now some themes will call Single.php files in a cycle file, so according to your theme, you may want to put this code there.)

]

There are many ways to accurately determine the display method of the previous and the next link, so if you are willing, you can view more information about it on WordPress Essence At the same time, we will introduce some code that suits you. Place the following content at the bottom of the Single.php file. (appearance \u0026 gt; editor \u0026 gt; single-single.php)

\u0026 lt; php previous_post (\u0026#39; \u0026 lt; \u0026 lt; \u0026 lt; %\u0026# 39 ;, \u0026#39; \u0026#39;, \u0026#39; yes \u0026#39;); | \u0026 lt; php next_post (\u0026#39;% \u0026 gt; \u0026 gt; \u0026#39 ;, 39; \u0026#39, \u0026#39; yes \u0026#39;); \u0026 gt;

It will output links for you like this:

[

[

[ [ [ [ [ 123] Some plug -ins you need to consider

I dare to have a lot of plug -in to help you show your online books in a better way, but I will choose a plug -in that looks quite basic. This is more suitable for non -novel books than novels.

AZ listing

AZ list plug -in can help you create site indexes, just like ordinary books.

Let's take a look at its actual application.

AZ list screenshot.

Practical

Finally, it is not a plug -in, but a built -in WordPress tips. You can also choose to divide a long post into multiple pages. This is a simple technique, you can learn here.

The results are as followsShow (the style will be different according to your theme):

The last words

Of course, everything above is just a basic blueprint.You need to decide the content of the homepage, but this basic guide should help you get started.In fact, this may be enough for many people.You need to be careful to add too much navigation and too many flowers.You don’t want your visitors to be confused.a to z 列表截图
Keep it simple to make it logical and provide obvious navigation to your visitors.

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *