SlideShare una empresa de Scribd logo
1 de 52
WordPress 3 and You Oren Yomtov 1
Google Reader 2
Stickers 3
Tattoos 4
WordPress Cars 5
Volkswagen = WordPress? 6 http://j.mp/aAhHMV
Fight the Fake Logo 7 http://j.mp/cFMrzT
View Source 8
9
Your Own Username & Password 10
New Look (Well.. Kind of) 11
Kubrick is DEAD 12
Twenty Ten 13
Commented Code 14
Custom Header 15
Admin Page 16
Four constants must be defined define('HEADER_IMAGE', ‘%s/images/default_header.jpg'); define('HEADER_IMAGE_WIDTH', 775); define('HEADER_IMAGE_HEIGHT', 200); define('HEADER_TEXTCOLOR', 'ffffff'); 17
If you don't want to allow changing the header text color, add: define('NO_HEADER_TEXT', true ); Then change the first definition to: define('HEADER_TEXTCOLOR', ''); 18
Next you need to write two functions add_custom_image_header( ‘header_style’, ‘admin_header_style’ ) 19 http://j.mp/dcuRSv
Function 1 // gets included in the site header function header_style() {     ?><style type="text/css">         #header {             background: url(<?phpheader_image(); ?>);         }     </style><?php } 20
Function 2 // gets included in the admin header function admin_header_style() {     ?><style type="text/css">         #headimg {             width: <?php echo HEADER_IMAGE_WIDTH; ?>px;             height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;         }     </style><?php } 21
Default Headers 22
Default Headers 23 register_default_headers( array( 		'berries' => array( 			'url' => '%s/images/headers/berries.jpg', 			'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg', 			/* translators: header image description */ 			'description' => __( 'Berries', 'twentyten' ) 		) ) );
Text Preview 24
Text Color 25
Custom Background 26
Admin Page 27
Custom Background Code add_custom_background();  28 http://j.mp/ b9OJy0
Shortlinks 29
Shortlinks Code 30 the_shortlink( $text, $title, $before, $after ); wp_get_shortlink( 123 );
31
Menus 32
Menus 33
Menus 34
Menus 35
Menus 36
Menus Code 37 register_nav_menus( array( 		'primary' => __( 'Primary Navigation', 'twentyten' ), ) ); http://j.mp/abx5hV
Menus Code 38 wp_nav_menu( 	array( 		'container_class' => 'menu-header', 		'theme_location' => 'primary‘ 	) ); http://j.mp/97n79t
Menus Code 39 http://j.mp/97n79t
Custom Post Types and Taxonomies 40
Default Types Post Page Attachment Revision Menu 41 http://j.mp/d1nqEJ
The Ugly Way register_post_type('podcasts', 	array( 		'label' => 'Podcasts', 		'public' => true, 		'show_ui' => true, 		'capability_type' => 'post', 		'hierarchical' => false, 		'rewrite' => array('slug' => ‘podcasts'), 		'query_var' => true, 		'supports' => array('title','editor',) 	) ); 42
Custom Post Type UI 43
Custom Columns 44
Custom Columns 45
Custom Columns add_action("manage_posts_custom_column", "my_custom_columns"); add_filter("manage_edit-podcasts_columns", "my_podcasts_columns"); 46
my_podcasts_columns function my_podcasts_columns($columns) { 	$columns = array( 		"cb" => "<input type=quot;checkboxquot; />", 		"title" => "Podcast Title", 		"description" => "Description", 		"speakers" => "Speakers", 		"comments" => 'Comments' 	); 	return $columns; } 47
my_custom_columns function my_custom_columns($column) { 	global $post; 	if ("description" == $column) 		echo $post->post_content; elseif ("speakers" == $column) the_terms($post->ID, 'speakers'); } 48
Displaying Custom Post Types query_posts(‘post_type=podcasts’); 49 http://j.mp/9S1a6z
Displaying Custom Taxonomies the_terms($post->ID, 'speakers'); get_the_terms($post->ID, 'speakers'); 50 http://j.mp/9S1a6z http://j.mp/9Dft6I
Multisite Yup, back to the browser man. Oh, and open an FTP client. 51
This is The Last Slide Thank you for listening! You should look me up on Linkedin, Facebook & Twitter (@orenyomtov) You may soon download this presentation from orenyomtov.com 52

Más contenido relacionado

La actualidad más candente

PHP an intro -1
PHP an intro -1PHP an intro -1
PHP an intro -1
Kanchilug
 
WordPress Security - WordCamp Phoenix
WordPress Security - WordCamp PhoenixWordPress Security - WordCamp Phoenix
WordPress Security - WordCamp Phoenix
Mark Jaquith
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddle
Erin M. Kidwell
 

La actualidad más candente (18)

Vip
VipVip
Vip
 
Zen based theming
Zen based themingZen based theming
Zen based theming
 
10 useful WordPress functions (and maybe more)
10 useful WordPress functions (and maybe more)10 useful WordPress functions (and maybe more)
10 useful WordPress functions (and maybe more)
 
Advanced and Hidden WordPress APIs
Advanced and Hidden WordPress APIsAdvanced and Hidden WordPress APIs
Advanced and Hidden WordPress APIs
 
Developing for Windows Phone 7
Developing for Windows Phone 7Developing for Windows Phone 7
Developing for Windows Phone 7
 
Smarter Interfaces with jQuery (and Drupal)
Smarter Interfaces with jQuery (and Drupal)Smarter Interfaces with jQuery (and Drupal)
Smarter Interfaces with jQuery (and Drupal)
 
Make More Money With Advanced Custom Fields - WordCampYYC 2015
Make More Money With Advanced Custom Fields - WordCampYYC 2015Make More Money With Advanced Custom Fields - WordCampYYC 2015
Make More Money With Advanced Custom Fields - WordCampYYC 2015
 
Theme Development and Customization
Theme Development and CustomizationTheme Development and Customization
Theme Development and Customization
 
PHP an intro -1
PHP an intro -1PHP an intro -1
PHP an intro -1
 
State Machines to State of the Art
State Machines to State of the ArtState Machines to State of the Art
State Machines to State of the Art
 
Building Secure Twitter Apps
Building Secure Twitter AppsBuilding Secure Twitter Apps
Building Secure Twitter Apps
 
Pp checker
Pp checkerPp checker
Pp checker
 
Nanoformats
NanoformatsNanoformats
Nanoformats
 
Inside a Digital Collection: Historic Clothing in Omeka
Inside a Digital Collection: Historic Clothing in OmekaInside a Digital Collection: Historic Clothing in Omeka
Inside a Digital Collection: Historic Clothing in Omeka
 
Symfony 1, mi viejo amigo
Symfony 1, mi viejo amigoSymfony 1, mi viejo amigo
Symfony 1, mi viejo amigo
 
WordPress Security - WordCamp Phoenix
WordPress Security - WordCamp PhoenixWordPress Security - WordCamp Phoenix
WordPress Security - WordCamp Phoenix
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddle
 
Forum Presentation
Forum PresentationForum Presentation
Forum Presentation
 

Similar a WordPress 3 and You

5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter
nicdev
 
Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid Prototyping
Even Wu
 

Similar a WordPress 3 and You (20)

10 WordPress Theme Hacks to Improve Your Site
10 WordPress Theme Hacks to Improve Your Site10 WordPress Theme Hacks to Improve Your Site
10 WordPress Theme Hacks to Improve Your Site
 
What's New in ZF 1.10
What's New in ZF 1.10What's New in ZF 1.10
What's New in ZF 1.10
 
Wp meetup custom post types
Wp meetup custom post typesWp meetup custom post types
Wp meetup custom post types
 
Html in a box
Html in a boxHtml in a box
Html in a box
 
I Love codeigniter, You?
I Love codeigniter, You?I Love codeigniter, You?
I Love codeigniter, You?
 
Using Geeklog as a Web Application Framework
Using Geeklog as a Web Application FrameworkUsing Geeklog as a Web Application Framework
Using Geeklog as a Web Application Framework
 
5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter
 
Drupal Lightning FAPI Jumpstart
Drupal Lightning FAPI JumpstartDrupal Lightning FAPI Jumpstart
Drupal Lightning FAPI Jumpstart
 
Ods Markup And Tagsets: A Tutorial
Ods Markup And Tagsets: A TutorialOds Markup And Tagsets: A Tutorial
Ods Markup And Tagsets: A Tutorial
 
Introduction To Lamp
Introduction To LampIntroduction To Lamp
Introduction To Lamp
 
What's new in Rails 2?
What's new in Rails 2?What's new in Rails 2?
What's new in Rails 2?
 
Jquery
JqueryJquery
Jquery
 
Wordless, stop writing WordPress themes like it's 1998
Wordless, stop writing WordPress themes like it's 1998Wordless, stop writing WordPress themes like it's 1998
Wordless, stop writing WordPress themes like it's 1998
 
Css
CssCss
Css
 
Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid Prototyping
 
CSS
CSSCSS
CSS
 
Views notwithstanding
Views notwithstandingViews notwithstanding
Views notwithstanding
 
Joomla Day UK 2009 Template Design Presentation
Joomla Day UK 2009 Template Design PresentationJoomla Day UK 2009 Template Design Presentation
Joomla Day UK 2009 Template Design Presentation
 
Joomla! Day UK 2009 Template Design
Joomla! Day UK 2009 Template DesignJoomla! Day UK 2009 Template Design
Joomla! Day UK 2009 Template Design
 
Css tips & tricks
Css tips & tricksCss tips & tricks
Css tips & tricks
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

WordPress 3 and You

Notas del editor

  1. Do a live demonstration of changing the header image
  2. Do live demonstration of turning the background black
  3. Talk A LOT
  4. define(&apos;WP_ALLOW_MULTISITE&apos;, true);