Blog Archives

Liste xml des régions et départements

Les listes des régions et des départements sont souvent utiles pour les projets web. Je souhaitez toutefois avoir une correspondance entre les départements et les régions, j’ai donc dû compiler mes propres données. Les voici pour vous. Si vous souhaitez

Posted in Sql Tagged with:

WordPress theme customisation

Wordpress_logo_v3-1038x576

Create a child theme (see How to create a child theme) Create a new category-“nameofthecategory” template file from an existing similar file (category.php for exemple) (see codex.wordpress.org/Category_Templates for details and template priority) and customize it the way you want  

Posted in Wordpress Tagged with: , ,

How to add Post Formats support to your theme

Wordpress_logo_v3-1038x576

What is Post Format? According to codex: Post Formats is a theme feature introduced with Version 3.1. A Post Format is a piece of meta information that can be used by a theme to customize its presentation of a post.

Posted in Wordpress Tagged with: , ,

bypass sanitize_post from wp_insert_post

Wordpress_logo_v3-1038x576

sources: http://pp19dd.com/2010/06/unfiltered-wp_insert_post/ http://wordpress.org/support/topic/bypass-sanitize_post-from-wp_insert_post The problem: wp_insert_post() is an awesome function, but, it seems to filter HTML to unauthenticated users by calling sanitize_post().  So, if you’re logged in as an admin / editor – the function seems to operate fine. However,

Posted in Wordpress Tagged with: ,

How to upload your plugin with svn

Wordpress_logo_v3-1038x576

The fastest, easiest and best way to get your plugin out there is to upload your plugin to the WordPress Plugin Directory. Having it there will let you easily push out automatic upgrades to all your users when you find

Posted in Wordpress Tagged with: , ,

How to add mathematical formula to your blog posts

Wordpress_logo_v3-1038x576

To add mathematica formulas to blog posts, wordpress.com users can use the following tags: “” As explained in the support page, it allows people to display their latex formulas. For self hosted wordpress site, you can install the jetpack plugin

Posted in Wordpress Tagged with:

How to create a child theme

Wordpress_logo_v3-1038x576

Before editing a theme, it is recommanded to create a child theme that will not be deleted at each update. You can have the complete instructions in the codex. Briefly: Create a new directory in your theme directory (ex twentyfourteen-child)

Posted in Wordpress Tagged with:

How to create a favicon

Wordpress_logo_v3-1038x576

Complete instruction on how to make a favicon.ico file for your site here. In brief: Create the design in Inkscape (vector graphics application) and Export as a 16×16 pixel PNG file. Open in Gimp, and save as “Microsoft Windows icon”,

Posted in Wordpress Tagged with:

How to delete all the comments in wordpress

Wordpress_logo_v3-1038x576

Going back to an old blog, I found that there was more than 1700 comments pending, most of them spam since I didn’t put any good contents to this site. In order to quickly delete all this comments, go to

Posted in Wordpress

How to add formated code in a WordPress post

Wordpress_logo_v3-1038x576

If you want to add lines of code in your blog entry, you will need to use shortcodes, such as: your code here The list of supported language can be seen at http://en.support.wordpress.com/code/posting-source-code/ If you are hosted on wordpress.org, then

Posted in Wordpress Tagged with: