WordPress-列出特定用户的清单

发布于 2025-01-24 09:57:55 字数 97 浏览 3 评论 0原文

我正在研究一个高级主题,其中我的用户类型不同(成员,伴游,代理机构)。我想通过这些用户的列表为每个类别制作一个页面。我不知道从哪里开始。我在哪里可以找到此类别的sl。这应该是起点。

I'm working on a premiumpress theme where i have differents users type ( members, escorts, agencies ). I'd like to make a page for each category with a listing of these users. I don't know where to start. Where can i find the slug for this categories? It should be the starting point.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

西瓜 2025-01-31 09:57:55

首先,您必须使用:

<ul>
 <?php wp_list_authors('exclude_admin=0&hide_empty=0'); ?>
</ul>

然后在模板中创建THEDE文件:

对于作者,层次结构相当简单。模板层次结构指定WordPress使用以下列表中查找当前主题目录中找到的第一个模板文件:

1- author-{nicename}.php - If the author's nice name were rami, WordPress would look for author-rami.php.
2- author-{id}.php - If the author's ID were 6, WordPress would look for author-6.php.
3- author.php
4- archive.php
5- index.php

first you must use:

<ul>
 <?php wp_list_authors('exclude_admin=0&hide_empty=0'); ?>
</ul>

then create thede files in your template:

In the case of authors, the hierarchy is fairly simple. The Template Hierarchy specifies that WordPress uses the first Template file it finds in your current Theme's directory from the following list:

1- author-{nicename}.php - If the author's nice name were rami, WordPress would look for author-rami.php.
2- author-{id}.php - If the author's ID were 6, WordPress would look for author-6.php.
3- author.php
4- archive.php
5- index.php
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文