How to display the current and parent category in WordPress
Need to show the category hierarchy in your theme? Learn how to get the current category and its parent using get_the_category() and get_category_parents().
A buyer of business software in Edinburgh, whether a public body, a financial firm or a company with a security team, will often send a questionnaire before it signs. For cloud products one of the common reference points is the UK National Cyber Security Centre. I am Mariusz Szatkowski. I write PHP from Gdynia, remotely, and I am neither a lawyer nor a security assessor, so nothing I do is a certification. I build the PHP side and keep the evidence your answers need.

Edinburgh’s Old Town skyline, a view of the city and not a client reference. Image by Anthony O’Neil from Geograph, CC BY-SA 2.0, hosted on Wikimedia Commons.
The NCSC publishes 14 Cloud Security Principles to help a buyer choose a cloud provider that meets its security needs. The page states that they apply to both cloud platforms and Software-as-a-Service, and that configuring a service securely is a separate job. The current version is 2.1, reviewed on 7 June 2023. They are guidance and not law.
For each principle the NCSC describes the goals a good service meets, differentiators that give more confidence, suggested ways a provider could meet the goals and related considerations. It stresses that the suggestions are examples, and that a buyer should look at what evidence the provider gives. It also notes that some cloud services have published a written response to the principles, so a buyer can see in one place how the vendor believes it meets them.
The 14 are:
The principles are written from the buyer’s side, and the vendor is the provider being assessed. A PHP application sold as a service has three layers in play: the application code, the hosting it runs on and the people who operate it. The NCSC’s shared responsibility model explains how the split works. The provider of a layer takes the duties of that layer, and the customer always stays responsible for configuring the service securely and for deciding what data to store in it.
For a vendor this has two sides. Toward its customers, the vendor is the provider and has to answer for the application. Toward its host, the vendor is a customer and has to configure the platform well. The model recommends SaaS where a service that meets the need exists, and says that to build or host an application it prefers PaaS to IaaS, because more of the security work moves to a provider that works at scale. Principle 8 asks the vendor to understand which party carries which function when its service sits on a third-party platform.
Seven principles touch the application directly. Each row gives the NCSC’s expectation and the PHP artefact that shows it.
| Principle | What the NCSC expects | What shows it in a PHP project |
|---|---|---|
| 3 Separation between customers | the provider explains its security boundaries in compute, storage and network flows | a tenant scope applied in one data layer, with tests that try to cross it |
| 5 Operational security | vulnerability management covering application code and its dependencies, with a list of external dependencies | a lock file, a dependency list and a recorded patch routine |
| 7 Secure development | review of all deployed changes, an automated audited pipeline, separate production and test, supported software only | pull request history, a CI pipeline, a staging copy and secrets outside the repository |
| 8 Supply chain security | the provider understands how data is shared with third parties | a list of every external API and processor the application calls |
| 9 and 10 Users and identity | granular access control with least privilege, MFA, strong service identity | roles, MFA, session settings and rotatable API keys |
| 11 External interface protection | every external interface identified and defended | a route inventory with authentication and rate limits noted |
| 13 Audit information | audit data on resources, configuration, authentication and data access | an append-only audit table with a retention period |
Principles 1, 2, 4, 6, 12 and 14 sit more with the host, the company and its people than with the code, and I do not write about them in detail here.
Principle 3 says a malicious or compromised customer should not be able to access or affect another customer’s service or data. The NCSC adds a point that decides the design: separation within an application, or enforced by the kernel, usually gives appropriate security separation only for services where customers cannot run executable code, which is the case for SaaS. It also says stronger controls are needed where customers can run custom code.
For a PHP SaaS that does not run customer code, the application is therefore the separation boundary, and the boundary is only as good as the queries. A tenant identifier belongs in one data access layer, not in dozens of controllers. Reads and writes go through that layer. A test suite creates two tenants and checks that tenant B cannot read, change or list the records of tenant A through every route.
SQL injection is the other boundary risk. The PHP manual says that if an application exclusively uses prepared statements, the developer can be sure that no SQL injection will occur, but that it remains possible if other portions of the query are built with unescaped input. The rule in code review is simple: table names and sort columns come from an allow list, values come from parameters.
Principle 5.1 asks for a vulnerability management process whose scope includes application code and its dependencies on SaaS and PaaS. The NCSC expects mitigations at once for vulnerabilities exploited in the wild, and prioritised updates otherwise, within a defined timescale after an update is released. It says a provider with good change management should patch faster than a typical organisation. It also expects the provider to hold a list of external dependencies and include them in the process.
Principle 7 adds that the provider risk-manages third-party libraries, uses only supported external software, and watches advisories to pull in fixes promptly. The NCSC notes that standards such as ISO/IEC 30111:2019 do not set acceptable timescales, so a vendor has to set its own and keep a record that it met them.
In a PHP project the record is mostly files. The lock file lists exact versions. The commit history shows when an advisory led to an update. A written patch window, such as a number of days for critical advisories, turns an intention into a promise the NCSC says buyers will test against past performance.
Principle 7 lists what a buyer wants to be confident about: a development lifecycle at a standard suited to the data, code review of all deployed changes, an automated integration and deployment pipeline that enforces security and keeps an audit trail, separate production and test environments, and configuration and secrets management. The NCSC says secure development does not require all work to be done in-house or by highly vetted staff, and that extensive automation in the build pipeline should be the main way to gain confidence.
For a solo developer or a small team this converts into habits you can show:
Principle 10 expects a modern password policy, MFA for user access, equally robust authentication of service identities, credential lifecycles for joiners and leavers, and recommends single sign-on to a corporate directory. It also wants a well-monitored break-glass administrator account so that SSO failure does not lock everyone out.
PHP gives a few of these as built-in functions. password_hash creates a one-way hash, and the manual says PASSWORD_DEFAULT currently uses bcrypt and is designed to change over time, so the database column should be able to grow. bcrypt has a maximum input of 72 bytes. session_set_cookie_params accepts secure, httponly and samesite options and must be called before session_start.
<?php
declare(strict_types=1);
session_set_cookie_params([
'lifetime' => 0,
'path' => '/',
'secure' => true,
'httponly' => true,
'samesite' => 'Lax',
]);
session_start();
$hash = password_hash($plainPassword, PASSWORD_DEFAULT);These lines are the floor. MFA, breached password checks and credential rotation need more than a function call, and the NCSC lists them as goals to evidence.
Principle 13.1 says customers should be given the audit data needed to investigate incidents involving their use of the service. It names what to record: creation, modification and deletion of resources, changes to configuration, authentication events both successful and failed, and data accesses. It wants the customer to know the format, the retention period and how the information is delivered, and wants it protected so that neither the customer nor the provider can delete it during the retention period. The NCSC prefers providers that offer APIs to query and archive the data and an auditor role that can read logs without wider privileges.
In a PHP SaaS that is an audit table written from one place, with the tenant, the actor, the action, the object and the time. The application role that writes it has no update or delete right. An export endpoint or a scheduled export gives the customer its own records.
These questions shape the work:
Send the questionnaire you last received, with the hosting setup, through the contact page. A written estimate is free, and the first email answer arrives within 24 hours on working days. Wider PHP work, such as upgrades and integrations, is set out on the PHP developer page.
Examples of my work.
The sztuczne-rosliny.pl website is a modern e-commerce platform for a company specializing in the import and distribution of high-quality artificial plants in Poland.
Innoopract is a company specializing in software and services, supporting developers and corporations in maximizing returns on investment in developer tools and platforms.
Jobsin.co is a modern job board focused on posting job offers for qualified specialists in the fields of construction, mechanics, and engineering worldwide.
Describe your project by e-mail. I reply within 24 hours.
Describe your projectNeed to show the category hierarchy in your theme? Learn how to get the current category and its parent using get_the_category() and get_category_parents().
Need to get the URL of the first image or link in an article? Prefer DOMDocument over regex. Ready-made WordPress PHP for developers.
On 1 December 2026 Taylor Otwell shipped the Laravel Rust beta, and Laravel Go followed a day later. What the framework contains, what the 18x benchmark really measures, what happens to Laravel PHP and WordPress, and when a rewrite makes sense.
Custom WordPress engineering and architecture.
Scalable headless, ERP, and AI architecture for enterprise.
Stores, checkout flow, and sales logic.
Stability, updates, and post-launch support.
What the monthly care fee covers and what changes it.
Business process automation around WordPress and company systems.
Headless WordPress, Sanity, Strapi, and Contentful with Astro or Next.js.
Astro, MDX, edge delivery, and Core Web Vitals measured on real traffic.

How to start as a WordPress developer in 2026. Local environment, theme and plugin development, REST API and headless paths, security and Core Web Vitals. A practitioner playbook that does not waste your first month.

WordPress 7.0 with AI Client against Astro 7 with the Rust compiler and Vite 8. Speed, cost, SEO and security compared, plus the real bill for my own Astro 6 to 7 migration.

A detailed comparison table of EmDash CMS and WordPress across architecture, security, plugins, AI features, content model, hosting, and ecosystem maturity.