Quantcast
Viewing all articles
Browse latest Browse all 2381

Joomla! 4.x Coding • Re: Add canonical tag to HTML head via custom fields

It's your line

if ($field->id === '3')

which is failing. The id isn't a string, it's an int. Change it to

if ($field->id === 3)

Statistics: Posted by robbiej — Fri Jan 19, 2024 5:08 pm



Viewing all articles
Browse latest Browse all 2381

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>