Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Template Name: Plugins (Carbon Fields)
*
* @package BE2018
* @author Bill Erickson
* @since 1.0.0
* @license GPL-2.0+
**/
// General functions used by all plugin templates
require get_template_directory() . '/inc/plugins-general.php';
/**
* Plugin Listing
*
*/
function ea_carbon_fields_fields_plugin_listing() {
if( function_exists( 'carbon_get_post_meta' ) ) {
$plugins = carbon_get_post_meta( get_the_ID(), 'be_plugins' );
ea_plugins_listing( $plugins );
}
}
add_action( 'tha_content_loop', 'ea_carbon_fields_fields_plugin_listing' );
remove_action( 'tha_content_loop', 'ea_default_loop' );
// Build the page
require get_template_directory() . '/index.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.