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.
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.
Your question is not at all clear. How are you defining "permalink page" and "posts page"?
Hello.
By permalink page I mean when the user clicks through to the full article...
http://www.url.com/category/post
from the post list page.....
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.
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
This worked perfectly thank you very much!
You must log in to post.