Přidávání polí do formuláře pro komentář

There are situations where you might want to know a bit more about your commenter: their age, the city they live in, or the color of their underwear. This article explains how to add an input field, store the data in the database and how to display the additional data in your blog if your theme uses the comment_form() function provided by WordPress.

„Celý článek »“:http://wpengineer.com/2214/adding-input-fields-to-the-comment-form/

Změna nadpisu widgetu

Určitě jste se už trápili, jak změnit velikost nadpisu ve widgetech. WordPress tuto změnu v administračním rozhraní neumožňuje a tudíž budete muset zasahovat do samotné šablony. V té si najděte soubor functions.php a v něm budete muset opět pátrat, tentokrát po kódu, který vypadá nějak takto:

register_sidebar( array(
'name' => __( 'Primary Widget Area', 'twentyten' ),
'id' => 'primary-widget-area',
'description' => __( 'The primary widget area', 'twentyten' ),
'before_widget' => '<li id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>',
) );

Nyní stačí upravit nadpis H3 na ten, který požadujete. Třeba H2. Změnu uložte a můžete se těšit z výsledku.

Vytváření uživatelských map

**MapQuest Map Builder**
„http://wordpress.org/extend/plugins/mapquest-map-builder/“:http://wordpress.org/extend/plugins/mapquest-map-builder/

MapQuest Map Builder beta is a quick, easy tool for adding maps to your WordPress posts or pages. With version 1.0 you can easily add locations to the map via search, enter lat/long coordinates, or drop points directly on the map.

For each point added to the map, you can customize the map pointer icon, title and description. You can even use custom images that you host as the map pin.

Map Builder also has tools for drawing lines and shapes on your map. Create lines, rectangles, ellipses, and custom polygons on the map and set the color, opacity, border color and border width for each polygon on the map.

MapQuest Map Builder inserts a map as either an embedded interactive map in an iframe or can also insert as a static image file.

No API key or other sign-up required. Start making maps instantly!

[* http://wpcandy.com/files/2011/04/mapquestplugin-teaser.jpg *]

Přiřazování tagů do skupin

**Tag Grouping**
„http://wordpress.org/extend/plugins/tag-grouping/“:http://wordpress.org/extend/plugins/tag-grouping/

In a nutshell:

– Create logical and meaningful groups of tags quickly and easily that can be used on any post.
– Retroactively add tags to multiple posts when updating an existing group that is contained by the posts.
– Update old posts by updating your tag group. Add tags in bulk with 1 selection.

With a few simple steps you can transform your tags into a manageable bunch of groups. No more clicking on each tag for every post or pasting in a long string of tags. Now, with Tag Grouping, you can enable a checkbox for each group of tags you wish to associate with a post. When you save that post, the tags are added as if you were using the normal WordPress interface. As an added bonus, if you decide to alter a group of tags later and add more tags, all your posts with that group will receive the updated tag list.

Práce s formáty příspěvků

Post Formats are not the same as Custom Post Types. WordPress has five major default Post Types (Post, Page, Attachment, Revision and Nav Menu) and in the release of WordPress 3.0, we were given the ability to register our own types, e.g. Podcast, Book, Gallery etc. These new types appear separately within WordPress admin panel and are independent “channels” of content.

In contrast Post Formats are applied to the Post Post Type and add an additional piece of information that can then be used for formatting on a per post basis.

„Více »“:http://www.netmagazine.com/features/wordpress-post-formats-made-easy

CRM na šabloně TwentyTen

**TwentyTen CRM**
„http://www.billerickson.net/twentyten-crm/“:http://www.billerickson.net/twentyten-crm/

TwentyTen CRM is a child theme for TwentyTen specifically designed as a Customer Relationship Management tool. It creates a series of taxonomies and custom meta boxes to collect relevant data, displays the data in a useful Dashboard page template, features a Download page template that can be used to copy/paste all the data to Excel for more advanced analysis, and is easily customized to your specific needs. Oh, and it’s free.

Nastavení úrovně přístupu v pluginech

Almost every plugin needs to have at least one page in the admin area to let users customize how the plugin is used. In order to do this, you need to add your own administration menu items. There are a bunch of WordPress functions which let you do this:

/—code php
// add top level menu
add_menu_page(page_title, menu_title, capability, handle, [function], [icon_url]);

// add sub-menu pages
add_submenu_page(parent, page_title, menu_title, capability, file/handle, [function]);

// add Options sub-menu
add_options_page(page_title, menu_title, capability, handle, [function]);

// add Management sub-menu
add_management_page(page_title, menu_title, capability, handle, [function]);

// add Pages sub-menu
add_pages_page( page_title, menu_title, capability, handle, [function]);

// add Posts sub-menu
add_posts_page( page_title, menu_title, capability, handle, [function]);

// add Appearances sub-menu
add_theme_page( page_title, menu_title, capability, handle, [function]);
\—

**Více informací viz**
„Ultimate Guide to Roles and Capabilities“:http://www.garyc40.com/2010/04/ultimate-guide-to-roles-and-capabilities/

Co dělat, když selže automatická aktualizace WP

After initiating the auto-update of the WordPress core (say, from 3.1.0 to 3.1.1), the “Update WordPress” screen will begin displaying the status of each step, beginning with these messages:

*Downloading update from http://wordpress.org/wordpress-3.1.1.zip…
Unpacking the update…
Verifying the unpacked files…
Installing the latest version…
Couldn’t copy file…
Installation failed*

The status message that appears just before “Installation Failed” explains what WordPress thinks is the issue, but there are cases where things go wrong and no messages are displayed. In either case, the user can get locked out of the site. When this happens, trying to load any of your pages – admin, blog, login, etc. – gets you the nothing but the WordPress maintenance page:

*Briefly unavailable for scheduled maintenance.
Check back in a minute.*

Very frustrating, and very difficult to fix things when you can’t log in to Admin. Fortunately, you don’t need Admin to fix it and get back in. Just FTP your way to the root directory and delete the **.maintenance** file. The name begins with a dot, so if you don’t see it using your FTP program, try logging into your server’s control panel and using the file manager to find and delete.

Zdroj: „http://digwp.com/2011/04/wordpress-auto-updates/“:http://digwp.com/2011/04/wordpress-auto-updates/

Prolinkování webů tagy

**Tag Search**
„http://wordpress.org/extend/plugins/tag-search/“:http://wordpress.org/extend/plugins/tag-search/

Tag search grabs your saved post tags and when a tag word or phrase is encountered in your post content, Tag Search automatically creates a link which is pointed to the search page to turn the tag into a search term. When the user clicks the linked tag word or phrase all posts found to contain the tag word or phrase will be returned in the results. This is different from similar plugins that link the tagged word or phrase to it’s tag page so only those posts sharing the tag are returned.

*Alternativa*

**WP-Hashtag**
„http://wordpress.org/extend/plugins/wp-hashtag/“:http://wordpress.org/extend/plugins/wp-hashtag/

Pokud při psaní nějakého příspěvku vložíte před nějaké slovo „křížek“, tj. např. **#slovo**, pak se toto slovo jednak automaticky po uložení stane štítkem daného příspěvku (pokud podobný štítek neexistoval, tak se vytvoří) a současně bude toto slovo prolinkováno.

Editace různých oblastí na stránce

**Page.ly MultiEdit**
„http://wordpress.org/extend/plugins/pagely-multiedit/“:http://wordpress.org/extend/plugins/pagely-multiedit/
„http://blog.page.ly/multiedit-plugin/“:http://blog.page.ly/multiedit-plugin/

MultiEdit adds tinyMCE editable content „blocks“ to WordPress custom page templates.

[* http://pagelyblog.presscdn.com/wp-content/uploads/2010/02/multiedit.gif 630×616 *]