Custom fields rendering in templates with PHP

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
skouf
Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Fri Mar 07, 2014 10:57 am

Custom fields rendering in templates with PHP

Post by skouf » Wed Jul 19, 2017 1:24 pm

Hello

I am searching and searching for the easiest way to get values of custom fields with PHP.

I created a new field inside an article. Now inside the template I want to display something regarding this value.

How can I get all the custom fields and their value in PHP from my template (index.php).

Thanks !

skouf
Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Fri Mar 07, 2014 10:57 am

Re: Custom fields rendering in templates with PHP

Post by skouf » Wed Jul 19, 2017 2:12 pm

I know a way to do this but from the com_content override :
https://docs.joomla.org/J3.x:Adding_cus ... errides/en

I need the same from the template :) Maybe in your case that will help you


Locked

Return to “General Questions/New to Joomla! 3.x”