This file contains 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
<style type="text/css"> | |
.acf-map { | |
width: 100%; | |
height: 400px; | |
border: #ccc solid 1px; | |
margin: 20px 0; | |
} | |
/* fixes potential theme css conflict */ |
This file contains 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('the_author', function($nom) { return 'moi';}); | |
add_filter( 'author_link', 'change_author_link', 10, 3); | |
function change_author_link($link, $author_id, $author_nicename) { | |
$link = '#'; | |
return $link; | |
} | |
function new_excerpt_more($more) | |
{ |
This file contains 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( 'pre_get_posts', 'my_get_posts' ); | |
function my_get_posts( $query ) { | |
$query->set( 'post_type', array( 'post', 'livre' ) ); // livre is our Custom Post Type | |
return $query; | |
} |