使用 WordPress 的第一步(区块编辑器)

本页指的是使用区块编辑器的 WordPress。如果您使用的是旧版本的 WordPress 或经典编辑器插件,请参阅本页面

我已经完成了 5 分钟的安装。现在怎么办?

您刚刚完成了 WordPress 的 5分钟安装或虚拟主机的一键安装。那么下一步该怎么做呢?

让我们循序渐进地参观一下 WordPress 网站,看看不同的功能是如何工作的,以及如何让你的新网站成为你自己的网站。在本教程的第一部分,除非是本教程的一部分,否则请不要更改程序中的任何内容。按照这些步骤操作后,你很快就会改变一切。

登录

首先登录网站的管理区或后端。将 wp-admin 放在域名后面(如 http://example.com/wp-admin),访问网站的登录页面。有些主题也会在前端提供登录链接或表单。现在使用在 5 分钟安装中创建的用户名和密码登录 WordPress。

从顶部开始

登录后,您将进入主管理屏幕,称为仪表盘。这是您的网站开始组织的地方。

屏幕顶部是称为工具栏的区域。点击您的网站名称;这是一个链接,它将带您进入新 WordPress 网站的视图。喜欢吗?不喜欢?无所谓,看看就好。您将在这里花费大量时间!

Test drive your WordPress site

Take time to look at the site before you get into changing it and figuring out how it all works; it’s important to see how the WordPress Twenty Twenty-Two theme is laid out and how it works. Consider this the test drive before you start adding all the special features.

The layout you are looking at is defined by a WordPress Theme. It is the appearance of your website, styling the look of the site, and the framing of the content. The WordPress Twenty Twenty-Two theme features a “header” at the top with the title and tagline for your site. Below is your Menu, if you have one. The main middle section of the page is the content area.

Scroll down the page and you will see a search box, recent posts, and recent comments. These are called Widgets.

Notice the bar at the end of the page. This is called the “footer.” It says “Proudly powered by WordPress.”

Take a Quick Trip Around

For now, you only have one post. It is residing within a page that is laid out as your home page or the front page. If you click on the title of the post, it will take you to the specific page for that post. The first page or home page of your site features the most recent posts on your site. Each post title will link to the actual page of the post. Some Theme designers design their single post pages to look different from the home page.

In the single post, pay attention to the layout and notice what is different about the design elements. Is the header different? Smaller, larger, or a different color? Is there a sidebar?

All of these changes are created from a few files called template files. You can learn more about how they work in Theme Developer Handbook. For now, however, let’s get on with how the rest of WordPress works.

Test Drive the WordPress Administration Screens

现在,您已经对网站的外观和不同布局部分的名称有所了解,是时候试驾一下 WordPress 管理了。这就像是熟悉新网站的后台。事实上,您登录后看到的第一个页面叫做仪表盘,它收集了有关您的 WordPress 网站上的活动和操作的信息和数据。

TheDashboard features a list of the most recent activity you’ve accomplished on your site and it helps to keep you up to date on new and interesting bits of information from the many WordPress resources.

屏幕左侧是主导航菜单,详细列出了您可以执行的各项管理功能。向下移动鼠标,子菜单就会 “飞 “出来,供你移动鼠标点击。选择 “上级 “导航部分后,该部分就会打开,显示该部分的选项。

The various menu items are as follows:

让我们从用户屏幕开始

点击用户选项卡。屏幕将发生变化,你将看到名为所有用户的屏幕,显示所有用户的列表;在这里你可以添加或更改现有用户和作者账户。在导航菜单中,点击 “您的资料 “菜单选项。在这里您将输入有关自己、作者和网站管理员的信息。填写完信息后,点击更新个人资料

Now, let’s look at some other powerful features of the WordPress Admin.

Changing the Look

TheAppearance, Themes Screen allows you to change the look of your site using different Themes. Themes are presentation styles that completely change the look of your site. Designed by developers and users, there are hundreds of themes available for you to choose from. In your Appearance Screen, you will see a list of currently installed themes, including the WordPress Twenty Twenty-Two theme. To quickly change the theme, simply click on the Activate button under one of the themes listed, then click on your site name in the top toolbar to see how it looks. Wow, you have another look. It’s that easy. Go back to Appearance > Theme and click the Activate button under the WordPress Twenty Twenty-Two theme to bring the design back to what you had. To see it again, click your site name in the toolbar, and there it is.

Creating a post

Back in the Administration Screen, take a look at the Posts Screen. You can use the tabs under the Posts Menu to write and manage your posts. Let’s start by making your first test post in the Add Newtab.

The first time you use the Block Editor, you will see a short tutorial.

Add the title of the article in the space allocated. Then write a text in the “Start writing or type / to choose a block” section This is just for a test, so you can write anything you want. When you are done, click on the Publish button at the top right of the page, then click a second time to confirm the publication. Now that you’ve gotten a feel for writing posts, you can view your posts by clicking your site name in the toolbar at top of the screen.

评论

Part of the fun of WordPress is the ability to have viewers leave comments on your site. It creates a dynamic interchange between you and the viewer. Do you want comments on your posts? Comments on posts come in a variety of forms, from pats on the back(Good job! Like the post!) to extensive conversations and commentary about the posts. Or maybe you are seeking comments that add to the information you’ve posted. Responding to comments and moderating them can also take up a lot of time. If they are critical to your site, then include them and consider how you want them presented. You can make a few comments yourself on the post you created. Take a look at how they are laid out and consider how you might want them to look to fit into the design and layout of your site. When you have reached your decision about how you want to handle comments, take time to read through the article on comments and WordPress discussion options to help you set those features.

Preventing Spam

There is more to think about when it comes to having comments on your site. Unfortunately, we live in a world where spam is a fact of life. It is recommended that you begin battling the comment spammers with the helpful article, Introduction to Dealing with Comment Spam.

Create Categories

Posts are usually stored in Categories and/or Tags so you can keep related topics together. Right now you only have one category, but you will soon want more. In the Posts > Categories tab, in the Add New Category area, fill in the information about your category. Continue to add your parent categories, going down the list. Hold off on entering subcategories until all the main categories are entered. 

NOTE: You can add any new category at any time, but make a note of the fact that categories can be sorted in WordPress in two ways: by name (alphabetically) or by ID number. As you enter the categories, they are assigned an ID number. It is difficult to change this, so if you don’t want your categories sorted alphabetically, enter them in the order you want to see them presented on the screen.

Setting Up Your Site

Before you get to the graphic look of your site, let’s do a little more administration to your site to set it up. You may want to install plugins to supercharge your website, and don’t forget to activate the Akismet WordPress Plugin that is available with all WordPress sites to help protect it from comment spam. When you have the parent categories entered, enter your subcategories. In the pull-down menu for Parent Category, you can select the parent to the subcategory you are adding. When you view your categories in the Manage > Categories Screen, you will see the categories listed like this:

  • Computer Tips
    • Windows
    • Linux
    • Mac
  • Internet News
  • Web Page Design
    • Web Standards
  • WordPress
    • Plugins
    • Themes

Put Posts in Categories

让我们将一些测试文章归入分类,以便您了解其工作原理。在帖子 > 分类屏幕中,单击所有帖子选项卡。您应该能看到在这里输入的测试帖子。将鼠标悬停在每个帖子标题上时,在标题下方,您会看到编辑 | 快速编辑 | 垃圾箱 | 查看链接。单击 “编辑 “编辑其中一个帖子。在 “编辑帖子 “屏幕的右侧,您会看到您的 “分类”。点击旁边的方框选择其中一个。然后在上方的 “发布 “模块中,单击更新按钮。对其他测试帖子重复上述操作,将每个帖子放在不同的分类中。现在,点击工具栏顶部的管理屏幕中的网站名称,查看您的页面。现在看到侧边栏中列出的分类了吗?很好。如果缺少一个分类,通常意味着该分类中没有帖子。这是 WordPress 的默认功能,所以不用担心。当您在 “缺失 “分类中添加帖子时,它就会出现在您的网页上。点击其中一个分类,就会跳转到该分类的页面。您应该能看到该分类中的帖子。这就是生成的分类页面。现在,点击显示月份的 档案。现在你访问的是一个按时间顺序排列的本月文章的生成页面,具体来说,只包括今天的文章。两种查找相同信息的方法。

下一步

现在,您已经完成了新 WordPress 网站的所有基础工作。您知道如何撰写文章、创建分类,以及如何按分类和存档查看网站信息。您可以开始定制过程,完成后,别忘了删除您的测试文章!然后开始撰写一些精彩的信息,与新发现的公众分享!

使用 WordPress 主题

有数以百计的 WordPress 主题可供选择。所有主题的功能基本相同,但都以不同的图形方式展示信息。选择几个你感兴趣的、符合受众需求和你的愿望的主题,然后按照上面的试驾说明进行试驾。点击整个网站、分类和存档以及单个帖子,看看主题是如何处理每个帖子的。首页的外观可能不错,但如果单篇文章的处理方式你不喜欢,那么你就必须深入研究代码并进行修改。如果还没准备好,那就试试其他主题吧。

创建自己的主题

如果你熟悉 CSS 、 HTML 甚至 PHP 和 MySQL,可以考虑根据自己的需要定制主题或创建自己的主题。

使用 WordPress 插件

WordPress插件也被称为添加程序或扩展。它们是添加功能和事件到您的网站的软件脚本。它们的功能范围从最新的天气报告到简单地组织您的帖子和分类。插件是由喜欢挑战和解决问题的志愿贡献者和热情者设计的。通常,通过WordPress管理插件屏幕,它们安装起来相当简单,只需按照插件作者提供的说明操作。记住,这些都是免费的且非必需的。如果您在使用插件时遇到任何问题,首先联系插件作者的网站或插件来源,然后在互联网上搜索该特定插件的帮助,如果您还没有找到解决方案,那么请访问WordPress论坛以获得更多帮助。

创建自己的插件

如果您熟悉 PHP 、 HTML 甚至 MySQL,您就可以通过创建自己的插件来定制 WordPress,使其按照您想要的方式运行。

超越基础

WordPress 令人兴奋的地方在于它几乎没有限制。成千上万的人在使用 WordPress 写博客和运行网站。例如,请看 WordPress.org 主题展示下的一些作品。他们的网站都有不同的外观和功能。从这里开始,你就可以做自己想做的事了,但这里有几个地方可以让你迈出超越基础的第一步:

变更日志

  • 更新于 2022 年 6 月 19 日
    • 更新了 WordPress 6.0 的屏幕截图
    • 将所有引用从“二十二十一”主题更改为“二十二十二”
  • 更新于 2022-03- 09
    • 更新了 WordPress 5.9 的屏幕截图
  • 更新于 2021-01-01
    • 添加了变更日志
    • 更新了全部 WordPress 5.6 的屏幕截图
    • 添加了 WordPress 代码参考和学习 WordPress 的链接
    • 将所有引用从“二十十九”主题更改为“二十二十一”
    • 重新设计的语言 关于小部件并删除了关于侧边栏的语言,以与二十一主题保持一致。
    • 更新了“获取更多帮助”链接
    • 添加了有关块编辑器教程的信息
    • 清理了一些语法

首次发表

最近更新时间