Αυτό το πρόσθετο δεν έχει δοκιμασθεί με τις 3 τελευταίες κύριες εκδόσεις του WordPress. Μπορεί να μην αναπτύσσεται ή να υποστηρίζεται άλλο και να έχει προβλήματα συμβατότητας με τις πιο πρόσφατες εκδόσεις του WordPress.

Category and Taxonomy Meta Fields

Περιγραφή

Plugin to add custom meta fields within built in and custom taxonomies. Simply add the desired fields by going through WP-admin -> Settings ->Taxonomy Meta .

you can add following fields with category/taxonomy

  • Image.
  • Input Text.
  • Textarea.
  • Checkbox.

Δυνατότητες

  • Very simple in use
  • Can be customized easily.

Στιγμιότυπα

  • Settings page where you can add the custom fields
  • Example of the custom fields under the general category fields

Εγκατάσταση

  • Unzip into your /wp-content/plugins/ directory. If you’re uploading it make sure to upload
    the top-level folder. Don’t just upload all the php files and put them in /wp-content/plugins/.
  • Ενεργοποιήστε το πρόσθετο μέσω του μενού “Πρόσθετα” στο WordPress
  • Go to your WP-admin ->Settings menu a new “Taxonomy Meta” page is created.
  • Go to your WP-admin ->Settings ->Taxonomy Meta displayed in the category modification form with the meta you configured.
  • You can use the below function into your templates to retrieve all meta using ‘category id’:
if (function_exists('get_all_wp_terms_meta'))
{ 
   $arrayMetaList = get_all_wp_terms_meta($category_id);
   //where $category_id is category/term id
} 

// array all meta fields for category/term
print_r($arrayMetaList); 

  • you can use the below function into your templates to retrieve any particular meta using ‘category id’ and ‘meta key’:
if (function_exists('wp_get_terms_meta'))
{ 
  $MetaValue = wp_get_terms_meta($category_id, $meta_key ,true); 
  //where $category_id is 'category/term id' and $meta_key is 'meta key'
} 

//meta value for meta key $meta_key
echo $metaValue; 

Συχνές Ερωτήσεις

  1. No technical skills needed.

Κριτικές

27 Απριλίου 2020
The Installation tab of this plugin says to use the following code to display the information from your meta field: if (function_exists('wp_get_terms_meta')) { $MetaValue = wp_get_terms_meta($category_id, $meta_key ,true); //where $category_id is 'category/term id' and $meta_key is 'meta key' } //meta value for meta key $meta_key echo $metaValue; but he misspelled the variable for the echo. It's supposed to be $MetaValue, not $metaValue. It's suppose to have a capital M. With that fix it will display properly.
6 Απριλίου 2018
This plugin has proven to be very useful for me, and when I had issues with implementation in my custom theme, I reached out to Aftab, the author, for help. He was kind enough to get back to me promptly and on top of that, he pointed out my error! Thanks, Aftab.
9 Αυγούστου 2017
Hi there, - In wp-taxonomy-meta-scripts.js line 37 missing "enable" variable definition - In wp-taxonomy-meta.php file: missing right php definition - should be <?php
Ανάγνωση όλων των 15 κριτικών

Συνεισφέροντες & Προγραμματιστές

“Category and Taxonomy Meta Fields” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.

Συντελεστές

Σύνοψη αλλαγών

This is first version no known errors found