Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 17th, 2012  |  syntax: None  |  size: 1.65 KB  |  views: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. //csv tags for meta keywords by admindaily.com
  3.  function tags4meta() {
  4.  $posttags = get_the_tags();
  5.  foreach((array)$posttags as $tag) {
  6.  $tags4meta .= $tag->name . ',';
  7.  }
  8.  if (!is_single()) { ?>FCPX,Template,apple,Motion,Motion Templates,Free Motion Templates,Motion 5 Templates,FCPX Templates,Final Cut Motion Templates, Apple Motion 4 Templates, Apple Motion 3 Templates, FREE Motion Templates, FREE Motion 4 Templates, FREE Motion 5 Templates<?php }
  9.  echo "$tags4meta";
  10.  
  11. }
  12.  
  13. // Add a second menu
  14. register_nav_menus( array(
  15.         'secondary' => __( 'Top Menu (Above the Header)', 'yourtheme'),
  16.         'primary' => __( 'Primary Menu', 'yourtheme' ),
  17.  ) );
  18.  error_reporting(0); // Turn off all error reporting
  19. function mySearchFilter($query) {
  20. if ($query->is_search) {
  21. $query->set('post_type', 'post');
  22. }
  23. return $query;
  24. }
  25.  
  26. add_filter('pre_get_posts','mySearchFilter');
  27.  
  28. register_nav_menu( 'logged-in-menu', __( 'logged-in-menu') );
  29. register_nav_menu( 'logged-out-menu', __( 'logged-out-menu') );
  30.  
  31. add_action('wp_enqueue_scripts', 'jquery_method');
  32. function jquery_method() {
  33. wp_deregister_script( 'jquery' );
  34. wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js');
  35. wp_enqueue_script( 'jquery' );
  36. }
  37.  
  38. global $is_iphone;
  39. if ( $is_iphone ) {
  40.     add_filter('shadowbox-js', '__return_false');
  41. }
  42.  
  43. /*
  44. START Custom JS
  45. */
  46. function mmt_custom_js() {
  47. wp_enqueue_script('mmt_custom_js', get_bloginfo('template_url').'/js/custom.js', false, '1.0', true);
  48. }
  49. add_action('wp_enqueue_scripts', 'mmt_custom_js');
  50. // Remove default fancybox function
  51. remove_action('wp_head', 'fancybox');
  52. /*
  53. END Custom JS
  54. */
  55. ?>
clone this paste RAW Paste Data