Title: permalink detection?
Last modified: August 20, 2016

---

# permalink detection?

 *  Resolved [coolkidsunion](https://wordpress.org/support/users/coolkidsunion/)
 * (@coolkidsunion)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/permalink-detection/)
 * Hi there. I think I may be missing something and this may be super simple. Is
   there a built in function to detect whether the user is at a permalink page versus
   the posts page?
 * Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/permalink-detection/#post-2241623)
 * Your question is not at all clear. How are you defining “permalink page” and “
   posts page”?
 *  Thread Starter [coolkidsunion](https://wordpress.org/support/users/coolkidsunion/)
 * (@coolkidsunion)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/permalink-detection/#post-2241624)
 * Hello.
 * By permalink page I mean when the user clicks through to the full article…
 * [http://www.url.com/category/post](http://www.url.com/category/post)
 * from the post list page…..
 * [http://www.url.com](http://www.url.com)
 * I am trying to detect when someone is at the full article and get the postid 
   from the article displayed.
 * I hope that makes sense.
 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/permalink-detection/#post-2241627)
 * Yes
 * What you are looking for are called WordPress conditionals.
 * The full article is called the Single Post page, and the conditional is
    `if (
   is_single() )`
 * You can also insert a post ID or slug between the is_single inner parentheses.
   The default is the current post.
 * read more here:
    [http://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page](http://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page)
 *  Thread Starter [coolkidsunion](https://wordpress.org/support/users/coolkidsunion/)
 * (@coolkidsunion)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/permalink-detection/#post-2241747)
 * This worked perfectly thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘permalink detection?’ is closed to new replies.

## Tags

 * [detection](https://wordpress.org/support/topic-tag/detection/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * 4 replies
 * 2 participants
 * Last reply from: [coolkidsunion](https://wordpress.org/support/users/coolkidsunion/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/permalink-detection/#post-2241747)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
