Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lessons learned using WordPress as a CMS

Lessons learned using WordPress as a CMS

WordPress was initially designed as a blogging platform, but is now being used to drive content for full-blown websites. This talk will explore ways to make WordPress work as an CMS and lessons learned while building unique themes for clients.

Recording from the event is available here (this talk starts at min 1:34): http://bloggar.aftonbladet.se/utvecklingsbloggen/2015/03/10/schedule-live-stream-wordpress-stockholm-meetup-wpsthlm/

14islands

March 11, 2015
Tweet

More Decks by 14islands

Other Decks in Technology

Transcript

  1. <?php /* * Template Name: Home Page Template */ ?>

    <?php get_header(); ?> <main> <?php if (have_posts()) : while (have_posts()) : the_post(); the_content(); endwhile; endif; ?> </main> <?php get_footer(); ?> Bare mininum template
  2. register_post_type( 'projects', array( 'labels' => array( 'name' => __( 'Projects'

    ), 'singular_name' => __( 'Project' ) ), 'public' => true ) ); Post Types
  3. function product_price_box_content( $post ) { wp_nonce_field( plugin_basename( __FILE__ ), 'product_price_box_content_nonce'

    ); echo '<label for="product_price"></label>'; echo '<input type="text" id="product_price" name="product_price" placeholder="enter a price" />'; } The WordPress code way… http://www.smashingmagazine.com/2012/11/08/complete-guide-custom-post-types/
  4. // // Base // @import "base/_variables"; // // UI //

    @import "ui/_typography"; editor.scss -> editor.css
  5. // // Base // @import "base/_variables"; // // UI //

    @import “ui/_typography"; @import "ui/_layout"; @import "ui/_buttons"; @import "ui/_links"; @import "ui/_menu"; @import "ui/_header"; @import "ui/_footer"; style.scss -> style.css