background preloader

Wordpress

Facebook Twitter

WordPress Rencontre Premium - Boite à Site. Créer un site de rencontres sous WordPress - Boite à Site. Custom Menu Code Samples. Do you find yourself taking older themes and adding support for Custom Menus? Here are code samples that you can use for just that. To be clear, this isn’t a full-blown tutorial for Custom Menus. See Justin Tadlock’s excellent post, Goodbye, headaches. Hello, menus! Or the wp_nav_menu Codex page for all the juicy details. First, implement the following in functions.php and header.php. In header.php: This command replaces the previous navigation—usually a list of pages—which moves to the fallback function in functions.php. In functions.php: Don’t forget to change “mytheme” in the examples above to the name or slug of your theme. Next, add the CSS rules for submenu items. Next, test your shiny new menu. Finally, add the custom-menu tag to your style.css file to proudly tell the world you know support a Custom Menu in your theme.

Like this: Like Loading... Wordpress. The Complete Guide To Custom Post Types. WordPress has been gaining a foothold in the general content management system (CMS) game for a few years now, but the real breakthrough was the custom post type mechanism which allows for the creation of a wide variety of content. Let’s take a look at how this came to be and all the options that this great functionality offers. 1Some of the custom post types you can create in WordPress. What It Used To Be Like In practice, custom post types have been around for a long time, more specifically since February 17, 2005, when WordPress 1.5 added support for static pages, creating the post_type database field. The wp_insert_post() function has been around since WordPress 1.0, so when the post_type field was implemented in 1.5, you could simply set the post_type value when inserting a post.

By version 2.8, the register_post_type() function and some other helpful things were added to the nightly builds, and when 2.9 came out, the functions became available to everyone. Creating Custom Post Types. Toolset ou Comment réaliser de manière efficace des sites WordPress. Créer un thème de A à Z - Tutoriel WordPress. Generators - GenerateWP. Top 100 des Plugins WordPress.