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 Related:  WordPress

Page-specific CSS and Javascript using Wordpress Custom Fields -- BlogLESS: A Blog about Design Ethics Page-specific CSS and Javascript using WordPress Custom Fields Written by Paul on August 11, 2008 DLB‘s latest project is a website with some content-complexity, using WordPress as a Content Management System. WordPress is functional as a custom CMS largely because of Custom Fields, which allow you to assign an arbitrary amount of meta-data to a post (the core element of a WordPress site). Now, on this website, it came about that some of the pages needed specific Javascript classes and methods, and even more than that needed custom CSS classes. Immediately, it occurred to me that this could be handled through custom fields. Put the fully qualified URI of the file into a custom field. With this accomplished, edit your WordPress theme’s header.php, and write a couple little PHP conditionals to check for this field.

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!

Plugin API Plugin API Languages: বাংলা • English • Español • Français • 日本語 • 한국어 • Português do Brasil • ไทย • 中文(简体) • Русский • (Add your language) Introduction This page documents the API (Application Programming Interface) hooks available to WordPress plugin developers, and how to use them. This article assumes you have already read Writing a Plugin, which gives an overview (and many details) of how to develop a plugin. These hooks may also be used in themes, as described here. Hooks, Actions and Filters Hooks are provided by WordPress to allow your plugin to 'hook into' the rest of WordPress; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion. You can sometimes accomplish the same goal with either an action or a filter. For a thorough listing of all action and filter hooks in WP see Adam Brown's WordPress Hooks Database. Function Reference Actions Modify database data. The basic steps to make this happen (described in more detail below) are: where:

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:

Extending the WordPress XML RPC API - CodeForest - web development and programming blog XML-RPC is a remote procedure call (RPC) protocol which uses XML for data handling and HTTP as a data transport mechanism. XML-RPC also refers generically to the use of XML for remote procedure call, independently of the specific protocol. Basically, client uses XML to encode parameters for remote calling, send that XML through HTTP request to XML-RPC server, which executes remote method and return XML encoded response back to the client. WordPress uses XML-RPC interface and currently support the Blogger API, metaWeblog API, Movable Type API, and the Pingback API. Original idea behind this interface was to allow people to easily exchange content between popular blogging platforms and WordPress platform. XML-RPC is simply a way of pushing in and pulling out data of a WordPress blog. Enabling XML-RPC support in WordPress XML-RPC support is turned off by default, as many average WordPress users don’t need it. How to use it? The best way to show you how to use it is by example. Extending the API

WordPress Watermark Plugin Option: Protect Images/Get Free Advertising Watermarking your images tends to serve one of two very important purposes. It can either discourage others from taking your images and using them as their own, or it can offer you a nice opportunity to advertise yourself if others do happen to take your images. In fact, you may even want others to take your watermarked images and place them far and wide wherever they like. Below we’ve collected the five best free WordPress watermarking plugins we could find. 1. The Watermark Reloaded plugin lets you choose to place a text watermark of your choosing on newly uploaded images. The plugin lets you set the position of the watermark, as well as the font type, font size, and font color. Here’s a look at the settings page. And here’s a look at an image with a watermark. Featured Plugin - WordPress Membership Site Plugin If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Find out more 2. 3. 4. 5.

WordPress 3.4 - Important Things You Need to Know WordPress 3.4 was released few days back, codenamed “Green” after the guitarist Grant Green. Just like every stable release of WP, version 3.4 too brings many big and small changes to the table. With something as popular as WordPress, missing out on a feature or two is obviously natural. If you are also overwhelmed by the features of WP 3.4, have no fear! In this article, we take a close look at some of the major additions of WordPress 3.4. Customization Beyond Imagination! To begin with, this new version of WordPress has added many innovative tweaks and features to the way you customize the look and feel of your website. The Theme Customizer C’mon, admit it: you like playing with new themes, don’t you? WordPress 3.4 has, to a great extent, revolutionized the way we operate with themes in the front-end. You now have the liberty to customize themes on the go using the Live Theme Customizer. There you go, changed the header and color scheme. Child Themes *Image Credit HTML in Captions Awesome!

Beginner WordPress Bloggers: 10 Things You Shouldn't Do There are plenty of posts out there with tips for WordPress newbies, which is pretty damned handy, it has to be said. After all, we were all beginners once. When you first fire it up, WordPress can be pretty overwhelming — such a depth of functionality is not easily presented in an immediately intuitive manner. Having said that, it only takes a few nudges in the right direction to get on your way. Install a theme here, a plugin there, have a fiddle with the visual editor, and you’re on your way. But what about all those things you shouldn’t do? Featured Plugin - WordPress Newsletter Plugin Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot. Find out more 10. If I submit a comment on a blog and am subsequently informed that it is being held for moderation, I don’t feel good about the experience. So please, do yourself a favor and skip the process altogether. 9. 8. 7. 6. Why? 5. 4.