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
// Register Custom Post Type | |
function case_study() { | |
$labels = array( | |
'name' => _x( 'Case Studies', 'Post Type General Name', 'text_domain' ), | |
'singular_name' => _x( 'Case Study', 'Post Type Singular Name', 'text_domain' ), | |
'menu_name' => __( 'Case Studies', 'text_domain' ), | |
'name_admin_bar' => __( 'Case Study', 'text_domain' ), | |
'archives' => __( 'Case Studies', 'text_domain' ), | |
'attributes' => __( 'Item Attributes', 'text_domain' ), |
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 | |
// just the listing part | |
$args = array( | |
'post_type' => 'case-study', | |
'posts_per_page' => - 1, | |
'order' => 'ASC', | |
'orderby' => 'menu_order' | |
); |
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
// Register Custom Post Type | |
function careers_job_detail() { | |
$labels = array( | |
'name' => _x( 'Jobs', 'Post Type General Name', 'text_domain' ), | |
'singular_name' => _x( 'Job', 'Post Type Singular Name', 'text_domain' ), | |
'menu_name' => __( 'Jobs', 'text_domain' ), | |
'name_admin_bar' => __( 'Job', 'text_domain' ), | |
'archives' => __( 'Job Archives', 'text_domain' ), | |
'attributes' => __( 'Job Attributes', 'text_domain' ), |
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
// make sure to add this line to disable the editor | |
define( 'DISALLOW_FILE_EDIT', true ); |
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 | |
//ACF Admin Options | |
if( function_exists('acf_add_options_page') ) { | |
acf_add_options_page([ | |
'page_title' => 'Theme Settings', | |
'menu_title' => 'Theme Settings', | |
'menu_slug' => 'theme-settings', | |
'capability' => 'edit_posts', |
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
.content li:before { | |
font-family: "Font Awesome 5 Pro"; | |
content: "\f00c"; | |
margin: 0 7px 0 -26px; | |
color: #9a7ba3; | |
} |
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 | |
$image = get_field( 'image' ); | |
if ( ! empty( $image ) ) { | |
// thumbnail | |
$size = 'medium'; | |
$thumb = $image['sizes'][ $size ]; | |
} else { | |
$thumb = '/wp-content/themes/topfloor-parcel/assets/images/placeholder.png'; | |
} ?> |