Articles. (2 posts)

  1. Loueen
    Posted 2 years ago #

    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.

  2. bcworkz
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.