Support » Plugins » Hacks » Articles.

  • Loueen


    Hello. I’m creating a plugins and I have to do if() when the articles is appeared.

    But I don’t know which hook I should use, and which variable is article in?

    Thank you, guys.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    By article do you mean each individual post? Inside the “loop”, the global $post has the entire post object. For example, the id for the current post can be accessed as $post->ID.

    Which hook you use would depend on what you are trying to do. You may not even need to use one. Please explain further.

Viewing 1 replies (of 1 total)
  • The topic ‘Articles.’ is closed to new replies.