[wp-hackers] Filter messages on index based on a tag

Glenn Ansley glenn at glennansley.com
Thu Jan 15 14:23:08 GMT 2009


Try inserting the following directly above if (have_posts()) : ?> on index.php

if( is_home() || is_front_page() ) {
  query_posts('tag=159');
}

On Thu, Jan 15, 2009 at 8:24 AM, madalin <niladam at gmail.com> wrote:
> Hello,
>
> I'm trying to show on my index page every post that is found in a
> specific tag that would be specified manually in theme's
> functions.php. How would i go arround that ?
>
> IE: I have a tag called 159, and i'm trying to show (INDEX only) only
> the posts found in that specific tag. Is there any plugin or function
> that i could use ?
>
> Thanks.
>
> --
> Regards,
> madalin
> http://madalin.eu
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list