Input formats, the wonder of WordPress 3.1

One of the novelties that we will find in the future version of WordPress 3.1 will be the input formats a way to apply custom styles from the theme to different types of publications that we generate with WordPress, something that I consider the natural evolution of the input types .

For this, the input formats are already being introduced in the trac of which at the moment we have …

  • aside – Normally untitled, the famous miniposts, as an update on Facebook or Twitter or in the theme Prologue (or P2)
  • chat – Transcripts of chat
  • gallery – Image galleries
  • link – When they are simply links to other sites
  • image – When only one image is published
  • quote – Dating
  • status – An ac short status update, limited to 140 characters as in Twitter. In this case I see it as redundant with the "aside" format
  • video – When a video is just published

It has also been indicated to add the "audio" formats, for podcasts or similar, and "code" for those small pieces of programming that, here for example, are shared with the readers.

The interface of the input formats will be more or less like this …

As you can see, you can define the input format in the editor and, later, in the ticket management screen will be identified. However Matt does not like to appear as one more line in the publishing widget, so it's not definitive.

Adding input format support is as simple as adding a line like the following to file ' functions.php ' of your theme:

The input formats, or " post formats ", will require updates to our favorite themes, which will add to their current virtues the inclusion of special CSS classes for each type of input format, taking WordPress themes to a higher level. There will also be whoever sounds like this Tumblr call it what you want, in the end is to offer more options to have a more complete WordPress.

Personally I think it's a fantastic idea, that leads WordPress to another level of personalization and much superior design .

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Titles as external links • WordPress Help

When you want to share in your blog an interesting post from another site you usually think of it as a minipost (or aside), in which you choose a title, a small description, and the link to the site with the information of interest to your readers.

Now would not it be better to just put a title linked to the external site ?. Surely more than once you have raised it as an elegant solution.

Well it's very easy to do it, just follow


Option A: code

1. Add function

Open file functions.php of your active theme and add the following code:

Replace it with this one:

3. Use the custom field

Now you just have to use the newly created function and, when you are going to share an external link, add a custom field, to choose between url_externa titulo_url or url_titulo and, in the value of it, put the URL where you should link the title of your post. If you want, you can also add a small description about the information in the external URL to where you direct the link. Publish and that's it.

This system is also very safe and clean because your "normal" entries will continue showing the title as always.


Option B: plugin


The other way to achieve this goal is to install the plugin called Page links to that, once installed and active, adds a widget to the editor where it allows defining a URL (internal or external) to where it will redirect the title. This plugin works the same for entries as for pages.

NOTICE : This publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you: