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().
VeriFactu is the common name for the regulation on invoicing software approved by Real Decreto 1007/2023 of 5 December. The Spanish tax agency (AEAT) says the name is a colloquial and inexact way of referring to that regulation, called RRSIF, and that “VERI*FACTU” is strictly the name of one of its two types of system. The technical detail sits in Orden HAC/1177/2024 of 17 October. The legal base is article 29.2.j of the General Tax Law, introduced by the anti-fraud law, Ley 11/2021.
The regulation does not change who has to invoice or what an invoice must contain. It changes how the software that issues invoices works. Each time an invoice is issued, the system generates and keeps, or sends to AEAT, an invoicing record with security and control measures: a fingerprint of the data, information from the previous record so omissions show up, and, in some modes, an electronic signature. Every invoice, complete or simplified, also carries a QR code.
For a PHP developer the consequence is concrete. A shop plugin that numbers orders, a billing module in a Laravel or Symfony application and a custom invoicing tool all count as invoicing systems if they issue invoices for a taxpayer in scope.
The dates moved several times, so I give the chain and then the current statement.
The AEAT frequently asked questions, updated to 27 November 2026, tie the new date to the period in the fourth final provision of Real Decreto 238/2026 of 25 March, the decree on mandatory electronic invoicing between businesses. They call the time before it a trial period. A taxpayer may stop sending trial records and invoice with another system, including an old one, until the adaptation date. After that date, an old system that can still issue invoices is itself the problem, as the penalty section below explains. If a taxpayer starts issuing real invoices with a VERI*FACTU system after the date, AEAT says it has to stay with that mode at least until the end of the calendar year in which the first records were effectively sent.
I would not plan a project around the latest date alone. A date that moved three times can move again, and the requirements themselves have not changed. Work on the records and the QR code is the same whether the deadline is 2026 or 2028.
AEAT describes two groups: producers and marketers of invoicing software, and businesses and professionals established in Spain who issue invoices. For the second group it gives a rule of four “no” conditions. The regulation applies if the taxpayer:
Condition three excludes only the Basque and Navarre territories, so a business with its tax domicile in Malaga does not drop out through it. AEAT’s answer on online shops is direct: the conventional or virtual way goods are offered is irrelevant. OSS sales under the one-stop-shop regime are covered as well and use a specific code in the record, “17” from list L8, with the invoice type F1 for a complete and F2 for a simplified invoice.

Photo: Bj.schoenmakers, CC0, Wikimedia Commons.
Software companies in the city have a direct stake as producers. The Malaga TechPark describes itself as a technology park with more than 30 years of history, run in public-private cooperation, with the Junta de Andalucía, the city council, Unicaja and the University of Malaga as shareholders. A product built in PHP by a company there and sold to Spanish taxpayers is an invoicing system in the sense of the regulation if it issues invoices.
I split the requirements into the parts a developer touches. All of them come from the regulation, the order and the AEAT answers cited here.
Two modes. AEAT names the VERI*FACTU mode, which sends each record to AEAT at the moment of issue, and the mode where records are kept in the issuing system, also called NO VERI*FACTU. In the second mode the system adds an electronic signature of the records and keeps an event log with security requirements like those for the invoicing records. All systems produced and marketed must be able to export and transmit the records online. For small operators AEAT offers a free application on its website, which supports only complete invoices and not several recipients.
Two record types. The system produces an “alta” record when an invoice is issued and an “anulación” record when one is cancelled. The records are not invoices and do not hold all invoice data. They are based on the mandatory invoice information plus security data, the identity of the system and the date and time of production.
No editing. Once a record exists, AEAT says no action is allowed on it. To change a record, the system generates a new record that cancels or replaces the first. Direct changes to records already issued in the database must not be a possible operation, whether the system works in VERI*FACTU mode or not. Mentions that are not part of the record can be changed without a new record.
Hash chain. Article 13 of the order lists the data that goes into the hash of an alta record: issuer tax number, invoice number and series, issue date, invoice type, total tax, total amount, the hash of the previous record, and the date, time and time zone of generation. AEAT says the algorithm is SHA-256 for all record types, “for the moment”, and that the exact method and examples are in a technical document on its developer site. The PHP side is one function: the hash function returns the digest as lowercase hexadecimal unless the binary parameter is set.
$previous = $records->lastHash($issuerTaxId); // empty for the first record
$record['previous_hash'] = $previous;
$record['hash'] = hash('sha256', buildHashInput($record)); // input string as defined by AEAT's technical document
$records->append($record); // insert only, never updateThe snippet shows the chain and the append-only rule. The input string is not something to guess; it comes from AEAT’s document. A hash chain also means concurrent requests must not read the same previous hash, so records for one issuer are written in a serialised way, for example under a database lock.
Event log. Systems that do not send to AEAT must record events: start and end of operation as NO VERI*FACTU, anomaly checks and detections in invoicing records and event records, restore from backup, and export of records. They also write a summary record for every 6 hours of operation and one before shutdown, as article 9 of the order sets out.
QR code and phrase. Article 20 of the order requires the QR code on printed invoices and on the image of a digital invoice, and the phrase “Factura verificable en la sede electrónica de la AEAT” or “VERI*FACTU” for verifiable invoices. Article 21 sets the size between 30x30 and 40x40 millimetres, the ISO/IEC 18004 standard and error correction level M. The content is the URL of the AEAT verification service and, in that URL, the issuer tax number, series and number, issue date and total amount. For structured electronic invoices the URL travels as a separate field and the QR itself is not needed. AEAT adds that the record’s hash is not part of the QR data.
The producer issues a declaración responsable, which AEAT calls a self-certification: no external body, no prior registration of the product. It is mandatory, has to be issued for every version, and has to be visible inside the system and available to the customer at the time of purchase.
AEAT’s answers matter for custom PHP work. If a company wrote its own invoicing software for its own use, the company has to certify it. An extension made by someone other than the producer of the original system, such as a custom module, is not covered by the original certification and needs its own. If the user builds it with its own staff or hired contractors under its own direction, the user is the producer and certifies it. If the user buys the extension as a product from a third party, that third party certifies it. For this reason a PHP project on an existing billing package starts with the question of who the producer of each component is.
Article 201 bis of the General Tax Law provides two serious infringements. Producing and marketing non-compliant systems carries a fixed amount of 150,000 euros per financial year in which such systems were sold, per type of system, and 1,000 euros per system marketed without a required certification. Holding systems that are not certified when they must be, or whose certified devices were altered, carries 50,000 euros per year.
AEAT answers a practical question: must an old billing program with historic data be deleted? Not necessarily. Keeping it is allowed if it can be shown that invoices can no longer be issued with it, normally by uninstalling it, or by changing it so that new invoices are impossible from a date. After the adaptation date, an old program that can still issue invoices makes its mere possession the infringement. AEAT says exporting the records is the most advisable way.
I am Mariusz Szatkowski, one developer in Gdynia, working remotely and in writing, with WordPress since 2006 and PHP for custom applications and shops.
I need repository access, a description of the numbering series, the current invoice templates and the name of the person who answers for the certification.
VERI*FACTU systems, the required phrase on the invoice template.General information on my PHP work is on the PHP developer overview.
If you build or run invoicing or shop software in PHP for the Spanish market, send me the URL or a short description, the goal, your deadline and the stack through the contact page. The first estimate in writing carries no fee. Please mention the framework, the database and whether invoices are issued for one company or for several.
Examples of my work.
The olshtyn.com website is a modern information portal created with the residents and tourists of Olsztyn in mind. This project combines functionality with a...
Osemka.pl (also known as 8.pl) is a social network that was designed and implemented in 2006-2007 as a place for user integration in the era of early social ...
Photo Studio Balbriggan is a modern photography centre in Ireland offering professional photography services, advanced photo editing, high-quality printing, studio rental, and photography workshops.
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.