SlideShare uma empresa Scribd logo
1 de 17
WordPress Option Panel 
and Metaboxes 101
ASIF NAWAZ 
info@asifsaho.me 
Twitter @asifsaho 
http://asifsaho.me
What is 
Redux forked from NHP and started as just an 
NHP fork, but it quickly became much more 
with additional features from SMOF and other 
frameworks. 
http://reduxframework.com/
Install in your custom theme 
https://github.com/ReduxFramework/redux-framework
Install in your custom theme 
Keep those files and delete the rest
Install in your custom theme 
-> Now make a folder lib/libs (name can be different) in 
your template directory.
Install in your custom theme 
Now copy this code to functions.php file 
if(!class_exists("ReduxFrameworkPlugin")){ 
require_once(get_template_directory().'/lib/redux-framework/redux-framework.php'); 
require_once(get_template_directory().'/lib/redux-framework/sample/redux-config. 
php'); 
}
Better way to include lots of files (as roots) 
$imx_includes = array( 
'/lib/redux-framework/redux-framework.php', 
'/lib/redux-framework/config/redux-config.php', 
'/lib/section/about.php', 
'/lib/section/skills.php', 
); 
foreach($imx_includes as $file){ 
if(!$filepath = locate_template($file)) { 
trigger_error("Error locating `$file` for inclusion!", E_USER_ERROR); 
} 
require_once $filepath; 
} 
unset($file, $filepath);
The Option Panel
Branding
Use the data in template
Its your time to start working with 
this awesome thing! 
An awesome turorial will be found here 
http://hasin.me/2014/07/16/adding-redux-framework-in-your-wordpress- 
theme/ 
Detail Docs 
http://docs.reduxframework.com/redux-framework/getting-started/
What is Metabox? 
A metabox is a toolbox available in several screens of the WordPress admin menu 
(posts, articles, post types, plugins…) which contains some tweaking options for a 
specific function or a specific area of a WordPress theme. 
Here is what a metabox looks like: 
Source
Custom Metaboxes and Fields for WordPress 
Download from Github 
https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress 
Include the init.php 
require_once(get_template_directory().'/lib/metabox/init.php');
Custom Metaboxes and Fields for WordPress 
Download from Github 
https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress 
Include the init.php 
require_once(get_template_directory().'/lib/metabox/init.php'); 
Details Documentation 
https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for- 
WordPress/wiki/Basic-Usage
Any Question?
Thanks for watching :)

Mais conteúdo relacionado

Mais procurados

Cms drupal installation & configuration anil mishra
Cms drupal installation & configuration   anil mishraCms drupal installation & configuration   anil mishra
Cms drupal installation & configuration anil mishra
Anil Mishra
 
Apache
ApacheApache
Apache
jtpond
 
Aj
AjAj
Aj
Reka
 
Archiving in eZ Publish: What to do with all your content
Archiving in eZ Publish: What to do with all your contentArchiving in eZ Publish: What to do with all your content
Archiving in eZ Publish: What to do with all your content
Peter Keung
 

Mais procurados (20)

Cloud init and cloud provisioning [openstack summit vancouver]
Cloud init and cloud provisioning [openstack summit vancouver]Cloud init and cloud provisioning [openstack summit vancouver]
Cloud init and cloud provisioning [openstack summit vancouver]
 
Digital Strategy Works - Moving Wordpress
Digital Strategy Works - Moving WordpressDigital Strategy Works - Moving Wordpress
Digital Strategy Works - Moving Wordpress
 
Readme
ReadmeReadme
Readme
 
ppt
pptppt
ppt
 
Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2
 
Cms drupal installation & configuration anil mishra
Cms drupal installation & configuration   anil mishraCms drupal installation & configuration   anil mishra
Cms drupal installation & configuration anil mishra
 
Apache
ApacheApache
Apache
 
Minor Project (Rajan Sharma)
Minor Project (Rajan Sharma)Minor Project (Rajan Sharma)
Minor Project (Rajan Sharma)
 
Cloudinit
CloudinitCloudinit
Cloudinit
 
Aj
AjAj
Aj
 
Xampp Ppt
Xampp PptXampp Ppt
Xampp Ppt
 
Oracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single nodeOracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single node
 
Archiving in eZ Publish: What to do with all your content
Archiving in eZ Publish: What to do with all your contentArchiving in eZ Publish: What to do with all your content
Archiving in eZ Publish: What to do with all your content
 
Basics of Ansible - Sahil Davawala
Basics of Ansible - Sahil DavawalaBasics of Ansible - Sahil Davawala
Basics of Ansible - Sahil Davawala
 
Servicemix4.5.0
Servicemix4.5.0Servicemix4.5.0
Servicemix4.5.0
 
Web Application Development using MVC Framework Kohana
Web Application Development using MVC Framework KohanaWeb Application Development using MVC Framework Kohana
Web Application Development using MVC Framework Kohana
 
Working with large archives in AtoM in National Library of Wales
Working with large archives in AtoM in National Library of WalesWorking with large archives in AtoM in National Library of Wales
Working with large archives in AtoM in National Library of Wales
 
Apache CloudStack Collab Miami - User Data : Alternatives to the VR
Apache CloudStack Collab Miami - User Data : Alternatives to the VRApache CloudStack Collab Miami - User Data : Alternatives to the VR
Apache CloudStack Collab Miami - User Data : Alternatives to the VR
 
Xampp Workshop
Xampp WorkshopXampp Workshop
Xampp Workshop
 
Varnish bof
Varnish bofVarnish bof
Varnish bof
 

Destaque

The notion of Specialization in the i* Framework
The notion of Specialization in the i* FrameworkThe notion of Specialization in the i* Framework
The notion of Specialization in the i* Framework
GESSI UPC
 
Arteon: Architectural and Technology Ontology
Arteon: Architectural and Technology OntologyArteon: Architectural and Technology Ontology
Arteon: Architectural and Technology Ontology
GESSI UPC
 
Electronica informatoca
Electronica informatocaElectronica informatoca
Electronica informatoca
Aidessita Gali
 
Industry-academia collaboration
Industry-academia collaborationIndustry-academia collaboration
Industry-academia collaboration
GESSI UPC
 
Histology of the liver and gall bladder [compatibility mode]
Histology of the liver and gall bladder [compatibility mode]Histology of the liver and gall bladder [compatibility mode]
Histology of the liver and gall bladder [compatibility mode]
Hanaa Said
 

Destaque (17)

The notion of Specialization in the i* Framework
The notion of Specialization in the i* FrameworkThe notion of Specialization in the i* Framework
The notion of Specialization in the i* Framework
 
Expert mining compsac-2014
Expert mining compsac-2014Expert mining compsac-2014
Expert mining compsac-2014
 
Arteon: Architectural and Technology Ontology
Arteon: Architectural and Technology OntologyArteon: Architectural and Technology Ontology
Arteon: Architectural and Technology Ontology
 
la inmo Servicios Inmobiliarios
la inmo Servicios Inmobiliariosla inmo Servicios Inmobiliarios
la inmo Servicios Inmobiliarios
 
Cesi2014
Cesi2014Cesi2014
Cesi2014
 
Confliction and mistakes with a designer from developer perspective
Confliction and mistakes with a designer from developer perspectiveConfliction and mistakes with a designer from developer perspective
Confliction and mistakes with a designer from developer perspective
 
Oss2015
Oss2015Oss2015
Oss2015
 
Electronica informatoca
Electronica informatocaElectronica informatoca
Electronica informatoca
 
Jcis 2015-Towards Assessing Open Source Communities' Health using SOC Concepts
Jcis 2015-Towards Assessing Open Source Communities' Health using SOC ConceptsJcis 2015-Towards Assessing Open Source Communities' Health using SOC Concepts
Jcis 2015-Towards Assessing Open Source Communities' Health using SOC Concepts
 
Ossap final
Ossap finalOssap final
Ossap final
 
Medical informatics
Medical informaticsMedical informatics
Medical informatics
 
Monitoring the service-based system lifecycle with SALMon
Monitoring the service-based system lifecycle with SALMonMonitoring the service-based system lifecycle with SALMon
Monitoring the service-based system lifecycle with SALMon
 
QuESo: a Quality Model for Open Source Software Ecosystems
QuESo: a Quality Model for Open Source Software EcosystemsQuESo: a Quality Model for Open Source Software Ecosystems
QuESo: a Quality Model for Open Source Software Ecosystems
 
Industry-academia collaboration
Industry-academia collaborationIndustry-academia collaboration
Industry-academia collaboration
 
Formprepo
FormprepoFormprepo
Formprepo
 
Histology of the liver and gall bladder [compatibility mode]
Histology of the liver and gall bladder [compatibility mode]Histology of the liver and gall bladder [compatibility mode]
Histology of the liver and gall bladder [compatibility mode]
 
Quản trị chiến lược-Tập đoàn Intel
Quản trị chiến lược-Tập đoàn IntelQuản trị chiến lược-Tập đoàn Intel
Quản trị chiến lược-Tập đoàn Intel
 

Semelhante a WordPress option panel and metaboxes 101

dylibencapsulation
dylibencapsulationdylibencapsulation
dylibencapsulation
Cole Herzog
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
Lauren Roth
 
Getting started-with-zend-framework
Getting started-with-zend-frameworkGetting started-with-zend-framework
Getting started-with-zend-framework
Marcelo da Rocha
 
Edp bootstrapping a-software_company
Edp bootstrapping a-software_companyEdp bootstrapping a-software_company
Edp bootstrapping a-software_company
Ganesh Kulkarni
 

Semelhante a WordPress option panel and metaboxes 101 (20)

dylibencapsulation
dylibencapsulationdylibencapsulation
dylibencapsulation
 
Anatomy of a Wordpress theme
Anatomy of a Wordpress themeAnatomy of a Wordpress theme
Anatomy of a Wordpress theme
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
 
Getting started-with-zend-framework
Getting started-with-zend-frameworkGetting started-with-zend-framework
Getting started-with-zend-framework
 
Adopt or hack - how to hack a theme in a Drupal way
Adopt or hack - how to hack a theme in a Drupal wayAdopt or hack - how to hack a theme in a Drupal way
Adopt or hack - how to hack a theme in a Drupal way
 
PyFilesystem
PyFilesystemPyFilesystem
PyFilesystem
 
Drupal theme development
Drupal theme developmentDrupal theme development
Drupal theme development
 
Converting (X)HTML/CSS template to Drupal 7 Theme
Converting (X)HTML/CSS template to Drupal 7 ThemeConverting (X)HTML/CSS template to Drupal 7 Theme
Converting (X)HTML/CSS template to Drupal 7 Theme
 
WordPress Theming 101
WordPress Theming 101WordPress Theming 101
WordPress Theming 101
 
Drupal Theme Development
Drupal Theme DevelopmentDrupal Theme Development
Drupal Theme Development
 
php
phpphp
php
 
php
phpphp
php
 
Apache
ApacheApache
Apache
 
Apache
ApacheApache
Apache
 
Drupal in Libraries
Drupal in LibrariesDrupal in Libraries
Drupal in Libraries
 
Laravel 5.3 - Web Development Php framework
Laravel 5.3 - Web Development Php frameworkLaravel 5.3 - Web Development Php framework
Laravel 5.3 - Web Development Php framework
 
Edp bootstrapping a-software_company
Edp bootstrapping a-software_companyEdp bootstrapping a-software_company
Edp bootstrapping a-software_company
 
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
 
Rapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPressRapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPress
 
WordPress Theme Workshop: Part 3
WordPress Theme Workshop: Part 3WordPress Theme Workshop: Part 3
WordPress Theme Workshop: Part 3
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

WordPress option panel and metaboxes 101

  • 1. WordPress Option Panel and Metaboxes 101
  • 2. ASIF NAWAZ info@asifsaho.me Twitter @asifsaho http://asifsaho.me
  • 3. What is Redux forked from NHP and started as just an NHP fork, but it quickly became much more with additional features from SMOF and other frameworks. http://reduxframework.com/
  • 4. Install in your custom theme https://github.com/ReduxFramework/redux-framework
  • 5. Install in your custom theme Keep those files and delete the rest
  • 6. Install in your custom theme -> Now make a folder lib/libs (name can be different) in your template directory.
  • 7. Install in your custom theme Now copy this code to functions.php file if(!class_exists("ReduxFrameworkPlugin")){ require_once(get_template_directory().'/lib/redux-framework/redux-framework.php'); require_once(get_template_directory().'/lib/redux-framework/sample/redux-config. php'); }
  • 8. Better way to include lots of files (as roots) $imx_includes = array( '/lib/redux-framework/redux-framework.php', '/lib/redux-framework/config/redux-config.php', '/lib/section/about.php', '/lib/section/skills.php', ); foreach($imx_includes as $file){ if(!$filepath = locate_template($file)) { trigger_error("Error locating `$file` for inclusion!", E_USER_ERROR); } require_once $filepath; } unset($file, $filepath);
  • 11. Use the data in template
  • 12. Its your time to start working with this awesome thing! An awesome turorial will be found here http://hasin.me/2014/07/16/adding-redux-framework-in-your-wordpress- theme/ Detail Docs http://docs.reduxframework.com/redux-framework/getting-started/
  • 13. What is Metabox? A metabox is a toolbox available in several screens of the WordPress admin menu (posts, articles, post types, plugins…) which contains some tweaking options for a specific function or a specific area of a WordPress theme. Here is what a metabox looks like: Source
  • 14. Custom Metaboxes and Fields for WordPress Download from Github https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress Include the init.php require_once(get_template_directory().'/lib/metabox/init.php');
  • 15. Custom Metaboxes and Fields for WordPress Download from Github https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress Include the init.php require_once(get_template_directory().'/lib/metabox/init.php'); Details Documentation https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for- WordPress/wiki/Basic-Usage