[wp-hackers] Static Front page setting, accessing from a plugin?

aesqe aesqe at skyphe.org
Sun Jan 3 21:21:13 UTC 2010


unless i got it all wrong:

get_option("show_on_front") will tell you if the user has set a static 
homepage (value is either "page" or "posts")

get_option("page_for_posts") will give you the ID of the page used as 
posts page (or FALSE if no value has been set)


cheers :)

On 3.1.2010 21:43, John Eckman wrote:
> Hello and happy new year all.
>
> Is it possible to access, from inside a plugin, whether the user has set a static homepage, and if so, what they have as their posts-page?

-- 
Bruno "Aesqe" Babic
-----------------------------------------
http://skyphe.org .:. http://breedart.org


More information about the wp-hackers mailing list