functions.php // facetWP

functions.php /** FacetWP index attachments */ function my_facetwp_indexer_query_args( $args ) { $args[‘post_status’] = array( ‘publish’, ‘inherit’ ); return $args; } add_filter( ‘facetwp_indexer_query_args’, ‘my_facetwp_indexer_query_args’ ); /** FacetWP */ facet Template <?php return array( ‘post_type’ => ‘any’, ‘post_status’ => array(‘publish’, ‘inherit’), ‘posts_per_page’ => 25, ‘tax_query’ => array( array( ‘taxonomy’ => ‘category’, ‘field’ => ‘slug’, ‘terms’ => array(‘2016′,’2015′,’2014’, […]

Read More

functions.php // searchWP

/* SEARCHWP DEBUG */ add_filter( ‘searchwp_debug’, ‘__return_true’ ); /* SEARCHWP DEBUG */ => searchWP System Configuration: wp_remote_post() does not work : use alternate indexer /* SEARCHWP add alternate indexer */ add_filter( ‘searchwp_alternate_indexer’, ‘__return_true’ ); /* SEARCHWP add alternate indexer */ /* SEARCHWP XPDF EXTENSION */ function mySearchWPXpdfPath() { return ‘/Library/Server/Web/Data/Sites/xpdf/pdftotext’; } add_filter( ‘searchwp_xpdf_path’, ‘mySearchWPXpdfPath’ ); /* SEARCHWP XPDF […]

Read More

functions.php // Remove Unwanted Admin Menu Items

function remove_admin_menu_items() { $remove_menu_items = array(__(‘Media’)); global $menu; end ($menu); while (prev($menu)){ $item = explode(‘ ‘,$menu[key($menu)][0]); if(in_array($item[0] != NULL?$item[0]:”” , $remove_menu_items)){ unset($menu[key($menu)]);} } } add_action(‘admin_menu’, ‘remove_admin_menu_items’);

Read More

wp-config.php

define(‘FS_METHOD’, ‘direct’); define(‘WP_MEMORY_LIMIT’, ‘128M’); define(‘WP_DEBUG’, TRUE);

Read More