Dette innstikket er ikkje testa med dei tre siste utgåvene av WordPress. Det kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar av WordPress.

AJAX Post Meta

Skildring

Allow any plain-text custom field to be edited via AJAX on the All Posts page. We use it at Brainstorm Media for quickly editing SEO titles, descriptions, and keywords. However, filters are provided for targeting any plain-text custom field.

AJAX Post Meta will auto-detect and add columns for:

Plugins

  • All in One SEO Pack
  • Greg’s High Performance SEO
  • Headspace2
  • Meta SEO Pack
  • Platinum SEO
  • SEO Ultimate
  • WordPress SEO

Themes

  • Builder
  • Headway
  • Hybrid
  • Thesis

Skjermbilete

  • Clicking a value or blank area brings up an edit field.

Installasjon

  1. Upload the folder ajax-post-meta into the /wp-content/plugins/ directory
  2. Activate the plugin through the «Plugins» menu in WordPress
  3. If your plugin or theme is supported, edit columns will be automatically added to your All Posts page.

Advanced: You may add support for other custom fields and post types using the following filters in your theme’s functions.php file:

function my_ajax_meta_post_types( $post_types ) {
    // Add list of post types to any previously enabled.
    // To complete override, just return an array
    return wp_parse_args( array(
        'post',
        'page',
    ), $post_types );
}
add_filter('ajax_meta_post_types', 'my_ajax_meta_post_types');

function my_ajax_meta_keys($keys) {
    // Array of meta keys to enable editing for
    return wp_parse_args( array(
        // Example AIOSEO meta keys
        '_aioseop_title'       => __('Title Override'),
        '_aioseop_description' => __('Description'),
        '_aioseop_keywords'    => __('Keywords'),
        '_aioseop_titleatr'    => __('Title Attribute'),
        '_aioseop_menulabel'   => __('Menu Label'),

        // General syntax
        // 'meta_key'       => __('Column Title'),
    ), $keys );
}
add_filter('ajax_meta_keys', 'my_ajax_meta_keys');

Bidragsytarar og utviklarar

“AJAX Post Meta” is open source software. The following people have contributed to this plugin.

Contributors

Endringslogg

1.0.1

  • Add additional filter used on custom content type edit screen. Props @pt1985 http://go.brain.st/RHiiTh

1.0

  • Initial Release