Sort Pages, Set Categories

Sort Pages, Set Categories

sloanthrasher

What It Does

Sort Pages Set Category is a WordPress plugin that allows you to organize your pages using drag-and-drop
and assign categories to the pages.

This plugin adds a menu item under the Appearance menu in the WordPress admin
dashboard, where you can easily reorder pages and save their order and category.

Features

  • Drag-and-drop page sorting
  • Assign categories (0 or more) to pages using multiple select
  • Save the page order and categories with a single click
  • Display pages in the saved order

How to uninstall the plugin?

Simply deactivate and delete the plugin.

Usage

  • After activating the plugin, go to Appearance > Sort and Categorize Pages in the WordPress admin dashboard.
  • You will see a list of your pages. Drag and drop the rows to reorder the pages as desired.
  • Use the category dropdown to assign a category to each page.
  • Click the “Save Changes” button to save the order and categories.

Files

sort-pages-set-cat.php

– This is the main plugin file that handles the functionality of the plugin. It registers the admin menu, enqueues scripts and styles, displays the admin page, and defines the REST API endpoint for saving the order and categories.

css/cstspp_styles.css

– This file contains the CSS styles for the plugin. It styles the table, order number, page title, category dropdown, and save button.

js/cstspp_scripts.js

– This file contains the JavaScript for the plugin. It initializes the sortable functionality for the table rows, collects the order and category data, and sends it to the REST API endpoint for saving.

assets/*.png

  • This folder contains the images used in the plugin, and plugin’s documentation.

languages/*.mo

  • This folder will contain the translation files for the plugin. To Be Done.

Q: I’ve changed the page order, but the changes aren’t there when I open the maintenance page again?

A: Be sure to click the Save Changes button at the bottom of the page listing.

Q: How do I select categories for a page?

A:
To select and deselect multiple Categories, you can use specific keyboard and mouse combinations depending on their operating system (Apple or PC). Here are the instructions for both:

Selecting Multiple Items

PC (Windows):

  • De-select a Single Item:

    • If the item is part of a contiguous selection, hold down the Ctrl key and click on the selected item to de-select it.
  • De-select Multiple Items:

    • Hold down the Ctrl key.
    • Click on each selected item you want to de-select.

Apple (Mac):

  • De-select a Single Item:

    • Hold down the Command (⌘) key and click on the selected item to de-select it.
  • De-select Multiple Items:

    • Hold down the Command (⌘) key.
    • Click on each selected item you want to de-select.

By following these steps, you can easily select and de-select a Castegory or multiple Categories on both Apple and PC systems.

De-selecting Items

1.0

  • Plugin released.
  1. Download the plugin files and upload them to your WordPress site\’s wp-content/plugins directory.
  2. Activate the plugin through the Plugins menu in WordPress.

— OR —

  1. In the admin menu, select Plugins, then click the Add Plugin button.
  2. A form will appear that will allow you to upload the zip file.
  3. Click the Browse button and select the file from your local drive.
  4. Once uploaded, you can Click on the Install button.
  5. The last step is to click on the Activate button.

Reviews

0 out of 5 stars

  • Version: 1.0
  • Last updated: 3 weeks ago
  • Active installations: 0
  • WordPress version: 5.3
  • Tested up to: 6.6.2
  • PHP version: 7.3