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 post object field on the CPT you want to display | |
* In the post object field select the CPT post you want this post to show on | |
* | |
* Example: | |
* 2 CPT's - Tours and Reviews | |
* | |
* To show reviews on the relevant tours: | |
* - Add the post object field to the reviews CPT | |
* - Select the tours that I want the reviews to show on inside the Review post |
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 | |
// Dequeue functions.js -> Contains handlers for navigation and widget area. | |
function buxum_dequeue_script() { | |
wp_dequeue_script( 'twentysixteen-script' ); | |
} | |
add_action( 'wp_print_scripts', 'buxum_dequeue_script', 100 ); | |
// Hide admin bar | |
function my_function_admin_bar(){ return false; } |