background preloader

The Complete Guide To Custom Post Types

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

How To Create Custom Taxonomies In WordPress Wordpress Cheat Sheet Updated in August, 2015. If you wish to download the WordPress cheat sheet directly into your computer, download this pdf. file. This WordPress Cheat Sheet should be enough to get you started developing or tweaking WordPress themes. Update: Some people requested a .jpg version of this table, here you go: This chart is mainly for web designers and developers who use WordPress. As an Average Joe, you don’t need to know about all those things. Ajouter de multiples galeries de médias sous WordPress La gestion des galeries photos sous WordPress est restée très sommaire dans sa gestion. Il est notamment impossible de gérer de multiples galeries associées à un article / page sous WordPress. Pourtant, il existe un moyen simple et rapide pour insérer un nombre illimité de galeries que voici.Un de mes derniers projets consistait à présenter des photos sous forme de galeries simples dans une page WordPress. Entre l’utilisation des fonctionnalités de gestion de base fournies par WordPress et l’installation du plugin NextGen Gallery, il y a un gap comme dirait les anglais ! C’est alors que j’ai trouvé mon bonheur avec le plugin Multiple Galleries. Et oui, pas de code à copier / coller dans un fichier aujourd’hui… Cet excellent module fait une chose et il le fait très bien : il ajoute un système de case à cocher dans l’outil de gestion de galeries de WordPress. N’attendez plus et téléchargez donc ce plugin génial : Multiple Galleries Taille : 68, 4 KiB • Date : 6 novembre 2012 • Hits : 1 797

The Death Of The “How To” Article This is a guest post by Tommy Walker, host of Inside The Mind. The “How To” article is suffocating the blogosphere. One look at Google explains why: “How To” returns nearly 13 BILLION results. In the past hour Google reports 55,100 results & Twitter shows “How to” updating at nearly 200 results/minute. “How to” has saturated the internet. “How To” with it’s Wal-mart instruction manual voice is sucking the life out of your blog. Yes, “How to” is essential to a blogger’s toolbox, but as a tool, it is misunderstood. If you don’t have a large following and you’re not the first to publish the “How to”, you’re wasting your time. In this article, I aim to break you of the mindset that the “How to” article alone will establish you as an authority or a thought leader. I want to encourage you to use your voice and find strength in your stories, because that’s what the social web should be all about right? Showing your Personality While Remaining Informative.Alternatives to the How To Article. “OK!

How To Create Custom Post Meta Boxes In WordPress WordPress Shortcodes: A Complete Guide Advertisement WordPress shortcodes were introduced in version 2.5 and since then have proved to be one of the most useful features. The average user acting as editor has the ability to publish dynamic content using macros, without the need for programming skills. When a shortcode is inserted in a WordPress post or page, it is replaced with some other content. In other words, we instruct WordPress to find the macro that is in square brackets ([]) and replace it with the appropriate dynamic content, which is produced by a PHP function. The usage is pretty simple. [recent-posts] For a more advanced shortcode, we could set the number of posts to display by setting a parameter: [recent-posts posts="5"] Going one step further, we could set a heading for the list of recent posts: [recent-posts posts="5"]Posts Heading[/recent-posts] Simple Shortcode In the first part of this tutorial, we will create the code for this simple shortcode: Create the Callback Function Register the Shortcode Hook Into WordPress

14 key WordPress functions to jump-start theme development After a few years (or even months) of designing and developing WordPress themes, especially for clients, you start to realize that a lot of the functionality can be standardized or distilled down into a “starter theme or kit”. This helps get the development process started and moving along apace. The best first step in doing this, I’ve found, is to nail down most of the common functions and include them in the functions.php. This functions.php file will need to be extended to meet the particular theme’s needs as new projects arise, but it will provide a more than awesome starting point for development. There are about 13 key functions that I like to start out with and will add to them as needed… 1. The navigation menu feature, introduced in WordPress 3.0, allows for the intuitive creation and maintaining of navigation menus in themes. At the very least, a standard theme will need a main navigation menu, perhaps in the header and a secondary navigation menu in the footer. <? <? 2. 3. if ( !

Improve Conversion from Visitor to Customer with 3 WordPress Plugins In order to make money online, you need to convert visitors to customers. If you do not know where you are succeeding and failing at transforming non-paying visitors into paying customers, your business has no hopes of reaching its full potential and profitability. Here’s a quick guide to three must-have WordPress plugins that help you convert your visitors into paying customers. First up is a tool designed to help you test new themes. Here’s how it works. Step One: Choose your Themes Click Appearance -> A/B Theme Testing after you’ve installed the plugin. Once you’re set up with Google Analytics, click the checkboxes next to the themes you want to test. You must use a minimum of two themes, but you may use as many themes as you would like at the same time. Step Two: Understanding the Results In order to convert your users to paying customers, you need to understand what themes work best and why. Compare the themes together and see which theme has the highest conversion rate. Tip:

Related: