PHP Compatibility Index

Is Custom Post Template compatible with PHP 8?

Version 1.5 · 10,000+ active installs

Works on PHP 8.0–8.5, with deprecation notices from 8.0

No removed PHP features found in Custom Post Template 1.5. It uses 1 deprecated feature(s) that only log notices today.

PHP 8.0
⚠ 1
PHP 8.1
⚠ 1
PHP 8.2
⚠ 1
PHP 8.3
⚠ 1
PHP 8.4
⚠ 1
PHP 8.5
⚠ 1

✓ no problems · ⚠ deprecation notices only (still works) · ✗ uses something removed in that PHP version

Not updated for 8.9 years. Nobody seems to maintain this plugin, so problems found here are unlikely to be fixed. If your site uses it, look for a maintained alternative before upgrading PHP.
Check your whole site, not just one plugin. The free PHP Upgrade Check plugin scans every plugin and theme you have installed (including premium and custom ones) and explains each problem. It runs on any host.

Deprecated (works today, logs notices)

File:lineWhat
plugin.php:183Declaring an optional parameter before a required parameter is deprecated since PHP 8.0. Parameter $function is optional, while parameter $page is required. The $function parameter is implicitly treated as a required parameter.

Removed long ago or protected by a check (code that most likely never runs on PHP 8)

File:lineWhat
plugin.php:509Declaration of a PHP4 style class constructor is deprecated since PHP 7.0 and removed since PHP 8.0

Plugin page on WordPress.org: custom-post-template