Panagiotis Tzamtzis | Παναγιώτης Τζαμτζής
  • Blog
  • Resume
  • Contact me

Tag: loop

1 Post
WordPress logo

Retrieve and get WordPress post ID outside the loop

Panagiotis Panagiotis 10 Mar 2011 Web Design 5804

Outside the Loop or out of the context of the post, such as in the header or the footer and even sidebar area in WordPress templates, the_ID() cannot be used as a function. Instead, $post->ID is used to return the post ID. $post is a global object that holds various information about the posts displayed on the page.

Go to article
All rights reserved to Panagiotis Tzamtzis

Menu

  • Blog
  • Resume
  • Contact me

Subscribe

Sign up to receive updates about new posts!

Recent Posts

  • Markdown Tools and Resources
  • Building Intelligent Search with BigQuery Machine Learning: A Step-by-Step Guide (Part 2 – LLM clustering)
  • Building Intelligent Search with BigQuery Machine Learning: A Step-by-Step Guide (Part 1 – K-Means clustering)
  • Do AI detectors work?
  • 2024 Q4 Most Exciting LLM-powered Projects

Panagiotis Tzamtzis

Panagiotis Tzamtzis
Web analytics consultant - Web developer

Passionate G(r)eek with experience in digital analytics projects and website implementation. Fan of clear and effective processes, automation of tasks and problem-solving technical hacks. Hands-on experience with projects ranging from small to enterprise-level companies, starting from the communication with the customers and ending with the transformation of business requirements to the final deliverable.

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok