This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Just the general settings | |
* | |
*/ | |
function demo_init_theme_options() { | |
// Define the settings field | |
add_settings_field( | |
'footer_message', //The ID (or the name) of the field |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$page_id = ""; | |
$product_pages_args = array( | |
'meta_key' => '_wp_page_template', | |
'meta_value' => 'login.php' | |
); | |
$product_pages = get_pages($product_pages_args); | |
foreach($product_pages as $product_page) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Login Empty Page | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages | |
* and that other 'pages' on your WordPress site may use a | |
* different template. | |
* | |
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Login Failed Page | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages | |
* and that other 'pages' on your WordPress site may use a | |
* different template. | |
* | |
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<main class="header"> | |
</main> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<ul> | |
<li v-for="item in ninjas">{{ item }}</li> | |
</ul> | |
</template> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP.VUE | |
<template> | |
<div id="customer-spa"> | |
<h1>{{ title }}</h1> | |
<h2>{{ greeting() }}</h2> | |
<posts></posts> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$page_id = ""; | |
$product_pages_args = array( | |
'meta_key' => '_wp_page_template', | |
'meta_value' => 'login.php' | |
); | |
$product_pages = get_pages($product_pages_args); | |
foreach($product_pages as $product_page) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Login Page | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages | |
* and that other 'pages' on your WordPress site may use a | |
* different template. | |
* | |
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$counter = 0; | |
$item_count = 0; | |
$args = array( | |
'post_type' => 'portfolio', | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'portfolio-item', |