Skip to content

Instantly share code, notes, and snippets.

Sébastien Méric smeric

Block or report user

Report or block smeric

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
smeric / Wordpress RSS 2.0 image enclosure .php
Last active Oct 14, 2015 — forked from supermethod/Wordpress RSS 2.0 image enclosure
How to add post image(s) as enclosure(s) to a wordpress RSS feed item - add to functions.php
View Wordpress RSS 2.0 image enclosure .php
* Add post type images to feed items
add_action('rss2_item', 'add_images_in_feed' );
function add_images_in_feed() {
global $post;
// Thumbnail...
$thumbnail_ID = get_post_thumbnail_id( $post->ID );
smeric / aggregate-feed.php
Created Nov 12, 2015 — forked from smajda/aggregate-feed.php
Merge multiple RSS feeds with SimplePie
View aggregate-feed.php
/* Merge multiple RSS feeds with SimplePie
* Just modify the path to SimplePie and
* modify the $feeds array with the feeds you want
* You should probably also change the channel title, link and description,
* plus I added a CC license you may not want
* Help from:
smeric / sanitize-filename.php
Last active Jul 15, 2016 — forked from herewithme/sanitize-filename.php
WordPress - No french punctuation and accents for filename
View sanitize-filename.php
Plugin Name: No french punctuation and accents for filename
Description: Remove all french punctuation and accents from the filename of upload for client limitation (Safari Mac/IOS)
Plugin URI:
Version: 1.0
Author: BeAPI
Author URI:
This program is free software; you can redistribute it and/or
You can’t perform that action at this time.