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 | |
| add_action('do_meta_boxes', 'tp_change_image_box'); | |
| function tp_change_image_box() | |
| { | |
| remove_meta_box( 'postimagediv', 'MY_CUSTOM_POST_TYPE', 'side' ); | |
| add_meta_box( 'postimagediv', __('My custom title'), 'post_thumbnail_meta_box', 'MY_CUSTOM_POST_TYPE', 'side', 'high' ); | |
| } | 
  
    
      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 | |
| /** | |
| * Exlcude categories ids: 2, 3 and 5 | |
| **/ | |
| function tp_SearchFilter($query) | |
| { | |
| if( !$query->is_admin && $query->is_search ) | |
| { | |
| $query->set( 'category__not_in', array( 2, 3, 5 ) ); | |
| } | 
  
    
      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 | |
| /** | |
| * Exclude current post/page/cpt from relationship field results | |
| */ | |
| add_filter('acf/fields/relationship/query/name=NAME-OF-THE-FIELD', 'bcpj_query_exclude_offre_id', 10, 3); | |
| function bcpj_query_exclude_offre_id( $options, $field, $the_post ) | |
| { | |
| if( is_admin() ) | |
| { | |
| $options['post__not_in'] = array( $the_post->ID ); | 
  
    
      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
    
  
  
    
  | RewriteCond %{HTTP_HOST} ^(www\.campus\.ccip\.fr)(:80)? [NC] | |
| RewriteRule ^(.*) http://www.campus.cci-paris-idf.fr/$1 [R=301,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
    
  
  
    
  | RewriteEngine On | |
| Redirect 301 /organisation.htm http://www.MYNDD.fr/about/quality-management/ | 
  
    
      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 | |
| $posts_page_id = get_option( 'page_for_posts' ); | |
| $posts_page = get_page( $posts_page_id); | |
| $posts_page_title = $posts_page->post_title; | |
| $posts_page_url = get_page_uri( $posts_page_id ); | |
| ?> | |
| <a href="<?php echo get_bloginfo( 'url' ) .'/'. $posts_page_url; ?>">Toutes nos actualités</a> | |
| OU | 
  
    
      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
    
  
  
    
  | # Permet de rediriger fiche-47-transports-le-ray.html vers fiche_adherents.php?id_adh=47Options +FollowSymlinks | |
| RewriteEngine on | |
| RewriteRule ^fiche-([0-9]+)-[a-z0-9_-]*\.html$ /fiche_adherents.php?id_adh=$1 [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
    
  
  
    
  | Options -Indexes | 
  
    
      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
    
  
  
    
  | Options +Followsymlinks | |
| RewriteEngine On | |
| RewriteEngine On | |
| RewriteCond %{SERVER_PORT} !^443$ | |
| RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [L,R] |