[Resolved] Template TAG shortcode?

Home Forums Support [Resolved] Template TAG shortcode?

Home Forums Support Template TAG shortcode?

  • This topic has 1 reply, 2 voices, and was last updated 2 years ago by Leo.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #931976
    Sebastien

    Hi,

    I’m optimizing my website. I’ve noticed that using: add_shortcode function is not recommanded as best practice as it seems generating more page loading & DOM consumption.

    Anyway, I would like to know if Template tags located into the page “Element > Hook ex:{{custom_field._thumbnail_id}} use add_shortcode function ? If so, I will prefer add the hook through function.php in order to do not use add_shortcode anymore.

    thanks ๐Ÿ™‚

    #932402
    Leo
    Staff
    Customer Support

    Hi there,

    Template tag aren’t shortcodes.

    You can learn more about it here:
    https://codex.wordpress.org/Template_Tags

    Let me know if this helps ๐Ÿ™‚

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.