To insert code use <code>...</code>.
metaboxes custom fields
  • I need to create some fields like : year, realisation, production, actors...

    Some fields are like tags and other are without link ( no follow).
    They are display in sidebar and in the metabox under title for All Posts or Portfolio items.

    What is the better wat to do that?

    Taxonomy, themegenerator, loops...... i see many thing but i don't witch is the better thing.

    Perhaps here:

    }elseif(is_tax()){
    $title = wpml_t(THEME_NAME, get_query_var( 'taxonomy' ) . ' Taxonomy Archive Title',theme_get_option('advance','taxonomy_'.get_query_var( 'taxonomy' ).'_title'));
    if($title === false){
    $title = theme_get_option('advance','taxonomy_'.get_query_var( 'taxonomy' ).'_title');
    }
    if($title === false){
    $title = wpml_t(THEME_NAME, 'Taxonomy Archive Title',theme_get_option('advance','taxonomy_title'));
    }
    $text = wpml_t(THEME_NAME, get_query_var( 'taxonomy' ) . ' Taxonomy Archive Text',theme_get_option('advance','taxonomy_'.get_query_var( 'taxonomy' ).'_text'));
    if($text === false ){
    $text = theme_get_option('advance','taxonomy_'.get_query_var( 'taxonomy' ).'_text');
    }
    if($text === false ){
    $text = wpml_t(THEME_NAME, 'Taxonomy Archive Text',theme_get_option('advance','taxonomy_text'));
    }
    $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
    $title = sprintf($title,$term->name);
    $text = sprintf($text,$term->name);
    }
    $title = stripslashes($title);
    $text = stripslashes($text);

    thankS
  • 2 Comments sorted by
  • Hi,

    I would use the themegenerators.php

    Be aware the function is called for every meta category. So sort those first in the striking backend and add your code to the meta you want it displayed infront or after. And use the classes which are already available by striking css.

    You will have to redo this on every theme update.

    However on the howto implement the code you will have to figure out your selves we dont provide this service.

    Best regards,
    Striking Team
    Paul
  • Hi,
    If i use a plugin is it more easy and for update i can backup my fields?