| 开发者 |
presswell
benplum |
|---|---|
| 更新时间 | 2026年12月4日 02:12 |
| PHP版本: | 8.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
person post type: people's URLs follow the page (/about/team/jane-doe/), the archive is served at the page's URL with its content, and the page is highlighted in menus. Posts can start their URLs with the posts page's path.
Ordering terms and posts within terms
Drag categories, tags, and custom taxonomies into order, with nesting. Each term can also have its own order of posts, for its archive and for single-term queries.
Breadcrumbs
A Breadcrumbs block, a template function, and a shortcode, with trails that follow the tree and use menu labels. Root pages also appear in Yoast SEO, The SEO Framework, Rank Math, and All in One SEO breadcrumbs.
Structure blocks
For block themes: a Root Page block heads an archive with its root page's title and content; a Page Tree block shows the current section, a page's children, or a site map, with the current page marked; and a Previous / Next Page block links through pages in tree order.
Featured posts
Star posts in lists and trees (one at a time or in bulk) or in the editor, arrange them on a Featured screen, and set a limit per post type. Show them with the Featured Posts block or 'pwss_featured' => true in a query.
Query Loops
A Site Structure panel on every Query Loop: use the tree order, a term's post order, or only (or no) featured posts, with matching editor previews.
Moving from other plugins
Importers for Nested Pages, Reorder by Term, Breadcrumb NavXT, NS Featured Posts, and the common post and term ordering plugins. Each starts with a dry run and leaves the other plugin's data in place. Only the optional Nested Pages cleanup, a separate step, deletes it (see the FAQ).
Settings and debugging
Settings › Site Structure has a tab per area. Breadcrumbs and Featured Posts can be turned off entirely. A Debug tab shows status, runs integrity checks with safe fixes, and keeps a private log that turns itself off after 7 days.
Developers
Themes get template functions (pwss_get_tree(), pwss_breadcrumbs(), pwss_get_featured_posts(), and root page helpers), query arguments ('pwss_featured' => true, 'orderby' => 'pwss_term_order', 'orderby' => 'pwss_order' for terms), REST fields, and WP-CLI commands for every importer. Markup, permissions, and where each order applies can be changed with filters, and actions fire on moves, menu syncs, and featured changes.
The full developer reference is part of the plugin's documentation on presswell.co.
Deactivate Nested Pages, then use Settings › Site Structure › Tools (or wp pwss import). A dry run shows the menu before and after, side by side, and any post type URLs that change. The import brings over tree and menu settings, root page assignments, page menu settings (labels, hidden items, classes, targets, custom URLs), links, and the synced menu, keeping its items. Undo restores the menu and settings until you run the cleanup step, which deletes what Nested Pages left behind.
Each has an importer on Settings › Site Structure › Tools (and a WP-CLI command), starting with a dry run. None of them change the other plugin's data.
wp pwss import-reorder-by-term) copies each term's post order. Its data is left in place until your theme's queries are switched over.wp pwss import-navxt) copies its settings and custom post type root pages, and lists the theme files, content, and widgets that still use NavXT.wp pwss import-featured) copies its post types, limits (radio mode becomes a limit of 1), and featured posts, and lists theme queries and widgets that still use it.wp pwss import-ordering) turns on trees for the post types they ordered and copies their term order. Post order is already stored where the tree reads it. Deactivate them afterwards, because they re-sort queries too.Assign a page as the root of a post type under Settings › Site Structure › Post Types. For example, assign "About › Team" to a person post type:
/about/team/jane-doe/./blog/hello-world/. Only posts change; category, tag, and date archives and other post types keep their URLs, and old post URLs redirect to the new ones.
get_terms() calls that use the default name order. Any call can ask for it with 'orderby' => 'pwss_order'. A call that explicitly asks for 'orderby' => 'name' can't be told apart from the default, so use 'slug' or the pwss_apply_term_order filter to opt out.'orderby' => 'pwss_term_order'; get_posts() always passes an order, so use that argument there.Add the Breadcrumbs block to a template, print a trail in a classic theme with <?php pwss_breadcrumbs(); ?>, or use the [pwss_breadcrumbs] shortcode. Trails follow the page tree (and so the synced menu), use menu labels, and put posts under their root page: Home › About › Team › Jane Doe. Posts can include their category (and its parents): Home › Blog › News › Local › Hello. Output is an accessible <nav><ol> list with optional schema.org JSON-LD.
Settings › Site Structure › Breadcrumbs sets the defaults: the home link and label, the separator, which taxonomy's term each post type shows and whether its parents show, and whether term archives show parent terms. Markup is changed with filters (see the developer reference).
Root pages also appear in Yoast SEO, The SEO Framework, Rank Math, and All in One SEO breadcrumbs, and a post type archive served at its root page uses the page's SEO title and description (Yoast, The SEO Framework, Rank Math).
Turn on Featured Posts under Settings › Site Structure › Settings, then choose the post types on the Featured tab, each with an optional limit. Star posts in the list, from a tree row's actions, or with the "Featured" checkbox in the editor, and drag them into order on the Featured screen (Posts › Featured). With a limit of 1, featuring a post replaces the featured one.
Show them with the Featured Posts block, a Query Loop that lists featured posts in their order. Any Query Loop can also leave the featured posts out ("latest posts, without the featured ones"). In PHP, use pwss_get_featured_posts() or 'pwss_featured' => true in a query.
Settings › Site Structure has a tab for each area: Settings, Post Types, Taxonomies, Menu, Breadcrumbs, Featured, Tools, and Debug. The Settings tab turns features on and off (Breadcrumbs and Featured Posts; a feature that's off has no tab, block, or screens), turns on a private debug log (it turns itself off after 7 days) and sets whether the plugin's data is removed when it's deleted. The Tools tab has the importers (also listed under Tools › Import), tools to sync the menu, update root paths, clear tree caches, and reset expanded rows, and settings export and import as JSON. The Debug tab shows the plugin's status (trees and their load time, the managed menu and its last sync, root paths, overlapping plugins), runs integrity checks with fixes where they're safe (missing or looping parents, ambiguous order, stray or duplicate menu items, stale root paths), and shows the debug log.