开发者

WordPress development?

开发者 https://www.devze.com 2022-12-22 12:26 出处:网络
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

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

精彩评论

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