SlideShare une entreprise Scribd logo
1  sur  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 :)

Contenu connexe

Tendances

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]Joshua Harlow
 
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 EC2ShepHertz
 
Cms drupal installation & configuration anil mishra
Cms drupal installation & configuration   anil mishraCms drupal installation & configuration   anil mishra
Cms drupal installation & configuration anil mishraAnil Mishra
 
Apache
ApacheApache
Apachejtpond
 
Aj
AjAj
AjReka
 
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 nodeOsama Mustafa
 
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 contentPeter Keung
 
Basics of Ansible - Sahil Davawala
Basics of Ansible - Sahil DavawalaBasics of Ansible - Sahil Davawala
Basics of Ansible - Sahil DavawalaSahil Davawala
 
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 KohanaArafat Rahman
 
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 WalesVicky-Phillips
 
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 VRKris Sterckx
 

Tendances (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
 

En vedette

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* FrameworkGESSI UPC
 
Expert mining compsac-2014
Expert mining compsac-2014Expert mining compsac-2014
Expert mining compsac-2014GESSI UPC
 
Arteon: Architectural and Technology Ontology
Arteon: Architectural and Technology OntologyArteon: Architectural and Technology Ontology
Arteon: Architectural and Technology OntologyGESSI UPC
 
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 perspectiveAsif Nawaz
 
Electronica informatoca
Electronica informatocaElectronica informatoca
Electronica informatocaAidessita Gali
 
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 ConceptsGESSI UPC
 
Medical informatics
Medical informaticsMedical informatics
Medical informaticsHanaa Said
 
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 SALMonGESSI UPC
 
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 EcosystemsGESSI UPC
 
Industry-academia collaboration
Industry-academia collaborationIndustry-academia collaboration
Industry-academia collaborationGESSI 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
 
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 IntelHuỳnh Nam
 

En vedette (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
 

Similaire à WordPress option panel and metaboxes 101

dylibencapsulation
dylibencapsulationdylibencapsulation
dylibencapsulationCole Herzog
 
Anatomy of a Wordpress theme
Anatomy of a Wordpress themeAnatomy of a Wordpress theme
Anatomy of a Wordpress themeDave Wallace
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To DrupalLauren Roth
 
Getting started-with-zend-framework
Getting started-with-zend-frameworkGetting started-with-zend-framework
Getting started-with-zend-frameworkMarcelo da Rocha
 
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 wayMarek Sotak
 
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 ThemeAdolfo Nasol
 
Drupal in Libraries
Drupal in LibrariesDrupal in Libraries
Drupal in LibrariesCary Gordon
 
Edp bootstrapping a-software_company
Edp bootstrapping a-software_companyEdp bootstrapping a-software_company
Edp bootstrapping a-software_companyGanesh Kulkarni
 
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 ...LinnAlexandra
 
Rapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPressRapidly prototyping web applications using BackPress
Rapidly prototyping web applications using BackPressNathaniel Taintor
 
WordPress Theme Workshop: Part 3
WordPress Theme Workshop: Part 3WordPress Theme Workshop: Part 3
WordPress Theme Workshop: Part 3David Bisset
 

Similaire à 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
 

Dernier

Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
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 REVIEWERMadyBayot
 
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.pdfsudhanshuwaghmare1
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
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 businesspanagenda
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
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, ...apidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
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 WorkerThousandEyes
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 

Dernier (20)

Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
+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...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
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
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
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, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

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