Deprecated: Tassos\Framework\Vendor\MobileDetect::__construct(): Implicitly marking parameter $headers as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/nrframework/NRFramework/Vendor/MobileDetect.php on line 839

Deprecated: Tassos\Framework\Vendor\MobileDetect::setHttpHeaders(): Implicitly marking parameter $httpHeaders as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/nrframework/NRFramework/Vendor/MobileDetect.php on line 864

Deprecated: Tassos\Framework\Vendor\MobileDetect::setCfHeaders(): Implicitly marking parameter $cfHeaders as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/nrframework/NRFramework/Vendor/MobileDetect.php on line 952

Deprecated: Tassos\Framework\Vendor\MobileDetect::setUserAgent(): Implicitly marking parameter $userAgent as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/nrframework/NRFramework/Vendor/MobileDetect.php on line 1002

Deprecated: Tassos\Framework\Vendor\MobileDetect::isTablet(): Implicitly marking parameter $userAgent as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/nrframework/NRFramework/Vendor/MobileDetect.php on line 1265

Deprecated: Tassos\Framework\Vendor\MobileDetect::isTablet(): Implicitly marking parameter $httpHeaders as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/nrframework/NRFramework/Vendor/MobileDetect.php on line 1265

Deprecated: Tassos\Framework\Vendor\MobileDetect::is(): Implicitly marking parameter $userAgent as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/nrframework/NRFramework/Vendor/MobileDetect.php on line 1296

Deprecated: Tassos\Framework\Vendor\MobileDetect::is(): Implicitly marking parameter $httpHeaders as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/nrframework/NRFramework/Vendor/MobileDetect.php on line 1296

Deprecated: Tassos\Framework\Vendor\MobileDetect::match(): Implicitly marking parameter $userAgent as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/nrframework/NRFramework/Vendor/MobileDetect.php on line 1325

Deprecated: Mobile_Detect::__construct(): Implicitly marking parameter $headers as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/nrframework/helpers/vendors/Mobile_Detect.php on line 678
Frequently Asked Questions - Advanced Custom Fields

Deprecated: Akeeba\Component\ARS\Administrator\Model\DlidlabelsModel::__construct(): Implicitly marking parameter $factory as nullable is deprecated, the explicit nullable type must be used instead in /home/tassos-pv1ry/staging.tassos.gr/public/administrator/components/com_ars/src/Model/DlidlabelsModel.php on line 20

Frequently Asked Questions

Here's a list of the most frequently asked questions about the Advanced Custom Fields extension

How to load an article's custom fields with PHP?

To get the article's custom fields programmatically with PHP, use the code below:

$article_id = 5; // Enter your article ID here

$model = JModelLegacy::getInstance('Article', 'ContentModel');
$article = $model->getItem($article_id);

JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');
$fields = FieldsHelper::getFields('com_content.article', $article, true);

The $fields variables is an Array of Objects, and you can loop through it like in the example below:

foreach ($fields as $key => $field)
{
    echo $field->title . ' = ' . $field->rawvalue;
}
Last updated on Jun 12th 2025 08:06

Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /home/tassos-pv1ry/staging.tassos.gr/public/administrator/components/com_tower/Tower/Helpers/MP.php on line 599

Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /home/tassos-pv1ry/staging.tassos.gr/public/administrator/components/com_tower/Tower/Helpers/MP.php on line 599

Deprecated: Function lcg_value() is deprecated since 8.4, use \Random\Randomizer::getFloat() instead in /home/tassos-pv1ry/staging.tassos.gr/public/plugins/system/sessiongc/src/Extension/SessionGC.php on line 66