[Plugin: Front-end Editor] Help with custom fields and custom taxonomies
-
So I used a lot of custom fields and taxonomies for my website. Im not sure how to make them editable…
Soo this is my code on my function.php for my taxonomies…
function my_taxonomies() { register_taxonomy( 'genero', 'post', array( 'hierarchical' => false, 'label' => 'Generos', 'query_var' => true, 'rewrite' => false ) );}
And in my single.php i’ve got this for my custom fields…
<?php $numepis = get_post_custom_values('titulo_alternativo'); if (empty ($numepis)){echo "";} else { echo "<strong>Título(s) Alternativo(s):</strong>"; foreach ( $numepis as $key => $value ) { echo " $value <br />"; } } ?>
And this for my custom taxonomies…
<?php echo get_the_term_list( $post->ID, 'genero', "<strong>Género:</strong> " , ', ', '' ); ?>
So… where i should put the editable thing?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘[Plugin: Front-end Editor] Help with custom fields and custom taxonomies’ is closed to new replies.