This file contains hidden or 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
add_action( 'cmb2_init', function() { | |
$cmb = new_cmb2_box( array( | |
'id' => 'address', | |
'title' => __( 'My Address', 'cmb2' ), | |
'object_types' => 'customizer', // Post type | |
'context' => 'normal', | |
'priority' => 800, | |
'show_names' => true, // Show field names on the left | |
) ); | |
// Regular text field |
This file contains hidden or 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
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "*" | |
</IfModule> |
This file contains hidden or 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
.soliloquy-item:before { | |
display: block; | |
content: ''; | |
width: 100%; | |
height: 100%; | |
position: absolute; | |
right: 0; | |
top: 0; | |
z-index: 9; | |
background: #212121; |
This file contains hidden or 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 | |
function fichte_custom_title( $post_id ) { | |
$title = get_field( 'custom_h1', $post_id ); | |
if ( false == $title || empty( $title ) ) { | |
echo esc_html( get_the_title( $post_id ) ); | |
} else { | |
echo esc_html( $title ); | |
} | |
} | |
?> |
This file contains hidden or 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 | |
function nest_custom_title( $post_id = 0, $before = '', $after = '', $echo = true ) { | |
if ( 0 == $post_id ) { | |
$post_id = get_the_ID(); | |
} | |
ob_start(); | |
echo $before; | |
$title = get_post_meta( $post_id, '_custom_h1', true ); | |
if ( false == $title || empty( $title ) ) { | |
echo esc_html( get_the_title( $post_id ) ); |
This file contains hidden or 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 | |
/* | |
Plugin Name: Custom Theme Types | |
Plugin URI: http://bigwing.com | |
Description: Content Types and Meta Boxes | |
Author: BigWing Interactive | |
Version: 1.0.0 | |
Requires at least: 4.1 | |
Author URI: http://bigwing.com | |
Contributors: ronalfy, bigwing |
This file contains hidden or 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 get_header(); ?> | |
<div class="content-wrapper internal"> | |
<main id="main-content" role="main"> | |
<?php | |
$maybe_page_title = custom_theme_cpt_get_option( 'gallery', 'archive-title' ); | |
if ( empty( $maybe_page_title ) || false == $maybe_page_title ) { | |
$maybe_page_title = 'Galleries'; | |
} | |
?> | |
<h1 class="page-title"><?php echo esc_html( $maybe_page_title ); ?></h1> |