Page Parts

Mô tả

Manage subsections of a page. Create ‘page parts’ as children of a page to display in different areas of your templates. Requires WordPress 3.4.

For more information, view the documentation link on the admin plugins page after activating the plugin.

Ảnh màn hình

  • Page Parts meta box.
  • Page Parts meta box with 3 Page Parts.
  • Support for Page Part theme locations (like theme_location for WordPress Menus) and featured images.
  • Page Part URLs are rewritten to their parent page passing the page part slug as an anchor.
  • Page Part meta box with link back to parent page and option to add a new sibling page part.

Cài đặt

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Hỏi đáp

How do I order Page Parts?

Either enter numbers in the order fields or drag them into the order you want.

Đánh giá

14 Tháng bảy, 2019
Hi Ben, thanks for this plugin, its intuitive, its integral with WP UI, it makes sense out of building reusable parts in WP, and I’m using it happily and without issues. too bad its not more widespread. cheers for a job well done. 🙂
Đọc tất cả 1 đánh giá

Người đóng góp & Lập trình viên

“Page Parts” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi

Unreleased

1.4.5

Fixed
– Fix error caused by incorrectly implemented wp_kses().

1.4.4

Security
– Escape URLs and HTML output to prevent XSS.

1.4.3

Fixed
– Page parts now work with parent set to pending/private/future/trash status.

1.4.2

Fixed
– Fix compatibility with WPML plugin where page part translations are duplicated.

1.4.1

Fixed
– Fix deprecated contextual_help implementation.

1.4

Added
– Apply page_part_theme_templates_depth filter when getting template images.
– Tested up to WordPress 5.8.2

Fixed
– Fix deprecated jQuery ready.

1.3.1

Fixed
– Fix page part permalink when parent is a child of other pages.

1.3

Added
– Add default template image filter page_part_theme_default_template_image.
– Allow found templates to be filtered before locating using the page_part_locate_templates filter.
– Added page_part_theme_templates filter to change the maximum folder depth where page part templates can be found in the theme.
– Add Template column to page parts admin table.

Changed
– Search 2 levels deep for Page Part templates in theme folder.

Fixed
– Fix revisions not saving.

1.2

Added
* Add page_part_show_default_template filter.
* Pass $page-part object to page_part_theme_templates filter.

Changed
* Use __construct() for class constructor methods.

1.1

Added
* Add page-attributes meta box to Page Parts (includes “order” field).
* Add page_parts_default_template_name filter so that the Default Template name can be changed in admin menus.
* Add page-part-default class to page parts with no template assigned.

1.0

Added
* Add support for Page Part templates.
* Show parent hierarchy in page parts admin.

Changed
* Improved documentation accessible via the plugins admin page.
* Use wp_update_post() when updating menu_order via AJAX.

Fixed
* If page part has no title, show “(no title)” in admin edit list table.

0.9

Changed
* Better handling of default permalinks with anchors (where page part is a child of another page part).

0.8

Added
* Add option to set parent ID manually (if page part is not connected to a post).
* Add page part column to post type admin pages.

Changed
* Don’t show Page Parts meta box in admin nav menus.

Fixed
* Textdomain should be a string – using a variable causes issues for parsers.

Security
* Check and escape filtered URLs.

0.7

Added
* Added API to specify theme locations.
* Added theme locations documentation.

Security
* Tightened up AJAX security with better POST validation and nonces.

0.6

Added
* Add “Add new page part” button on page parts to add a new part to the parent.
* Add support for author, excerpt, custom-fields and revisions.
* Added contextual documentation.
* Added page-parts constant.

0.5

Added
* Add plugin documentation (link on plugins page).
* Add page_parts_supported_post_types filter to enable support for other post types.
* Added page_parts_admin_columns and page_parts_admin_column_{$column_name} filters for adding extra columns to the page parts table.

0.4

Added
* Improve drag and drop interface – uses a ‘handle’ so as to not interfere with links etc.

Changed
* Admin table displayed using WP_List_Table class.

Fixed
* Order now updated immediate after drag and drop via AJAX.

0.3

Added
* Shows post thumbnail if available.
* Added language support.
* Display page part status in admin list.
* Added register_page_part_args filter.

0.2

Added
* First public release.