开发者

WordPress development?

What's the most effec开发者_StackOverflowtive way to streamline WordPress theme development when moving from a dev to a production environment?


First off don't use category ID numbers you should tie everything to category or tag slug since you can easily duplicate the slug when creating the new category.

        <?php // excludes testimonial category
        $slug = "testimonial";
        $category = get_category_by_slug($slug);
        query_posts($query_string . '&cat=-' .$category->cat_ID);
    ?>

Remove the - on cat to include a category by slug. After that I just FTP/SCP the theme up. You may want to look into getting a beanstalk account which does deployment for you with subversion and git deployment is coming.

http://beanstalkapp.com/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜