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
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.weareinstrument.nike.cpc.exc.CPCServiceException: invalid user id | |
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948) | |
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) | |
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | |
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638) | |
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444) |
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
function remove_menus () { | |
global $menu; | |
$restricted = array( __('Posts'), __('Comments')); | |
end ($menu); | |
while (prev($menu)){ | |
$value = explode(' ',$menu[key($menu)][0]); | |
if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);} | |
} | |
} | |
add_action('admin_menu', 'remove_menus'); |
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
$(document).ready(function(){ | |
$('a[href^="#"]').on('click',function (e) { | |
e.preventDefault(); | |
var target = this.hash, | |
$target = $(target); | |
$('html, body').stop().animate({ | |
'scrollTop': $target.offset().top | |
}, 900, 'swing', function () { |
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
$posts = get_field('relationship'); | |
if( $posts ): ?> | |
<ul> | |
<?php foreach( $posts as $post_object): ?> | |
<li> | |
<a href="<?php echo get_permalink($post_object->ID); ?>"><?php echo get_the_title($post_object->ID); ?></a> | |
<span>Post Object Custom Field: <?php the_field('field_name', $post_object->ID); ?></span> | |
</li> | |
<?php endforeach; ?> |
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
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'property-thumb', false, '' ); |
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
<link rel="stylesheet" type="text/css" href="<?php echo css_cache_buster() ?>" /> | |
function css_cache_buster() { | |
$pieces = explode("wp-content", get_bloginfo('stylesheet_url')); | |
return get_bloginfo('stylesheet_url') . "?" . filemtime(ABSPATH . "/wp-content" . $pieces[1]); | |
} |
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_filter( 'default_content', 'my_editor_content' ); | |
function my_editor_content( $content ) { | |
$content = "If you enjoyed this post, make sure to subscribe to my rss feed."; | |
return $content; | |
} |
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
RewriteRule ^login$ http://yoursite.com/wp-login.php [NC,L] |
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
function wps_force_ssl( $force_ssl, $post_id = 0, $url = '' ) { | |
if ( $post_id == 25 ) { | |
return true | |
} | |
return $force_ssl; | |
} | |
add_filter('force_ssl' , 'wps_force_ssl', 10, 3); |
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
function themeit_mce_buttons_2( $buttons ) { | |
array_unshift( $buttons, 'styleselect' ); | |
return $buttons; | |
} | |
add_filter( 'mce_buttons_2', 'themeit_mce_buttons_2' ); | |
function themeit_tiny_mce_before_init( $settings ) { | |
$settings['theme_advanced_blockformats'] = 'p,a,div,span,h1,h2,h3,h4,h5,h6,tr,'; | |
$style_formats = array( | |
array( 'title' => 'Button', 'inline' => 'span', 'classes' => 'button' ), | |
array( 'title' => 'Green Button', 'inline' => 'span', 'classes' => 'button button-green' ), |
NewerOlder