[wp-hackers] Should "view site" link to home or blog?
Viper007Bond
viper at viper007bond.com
Thu Mar 27 23:26:57 GMT 2008
Actually, it's relatively easy even though there's no direct filter.
Hook in at "admin_head" and add a filter to "pre_option_home". Inside the
function for that filter, do remove_filter( 'pre_option_home',
'yourfunction' ) so it won't run again and then do return $whatevervalue.
On Thu, Mar 27, 2008 at 6:02 AM, Callum Macdonald <
lists.automattic.com at callum-macdonald.com> wrote:
> Very true.
>
> There doesn't seem to be an easy way to do it via a plugin. However, it
> might be an idea to have two links. View Site | Blog. Or something of
> that ilk.
>
> Anyway, it's not a high priority.
>
> Cheers - Callum.
>
> Charles E. Frees-Melvin wrote:
> > I say do it as a plugin, or make it optional, this would disadvantage
> > users who do't use the blog featue of wordpress, and use it as a CMS.
> >
> > On Wed, Mar 26, 2008 at 7:33 AM, Callum Macdonald
> > <lists.automattic.com at callum-macdonald.com> wrote:
> >
> >> G'day,
> >>
> >> Most of my sites use the blog as the homepage. But one busy site has a
> >> static page as the home page, and the blog is on another page. When I
> >> click "view site" after doing something in the admin, 90% of the time
> I
> >> want to view the blog.
> >>
> >> So I pose the question, should the view site link point to the blog,
> if
> >> the site is "paged"?
> >>
> >> Cheers - Callum.
> >>
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> >>
> >
> >
> >
> >
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/
More information about the wp-hackers
mailing list