Perotin
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Since version 4.4 the form messages are in EnglishHello, I have downloaded the latest version (4.6.1) and I can translate everything to German (by choosing WordPress language) except the “Choose File”(chrome) or “Browse” (mozilla) and “no file chosen”(chrome) or “no file selected” (mozilla) phrases. How do I do that? Thank you!
Forum: Fixing WordPress
In reply to: display multiple roles in a postthanks, I will check it out:)
Forum: Fixing WordPress
In reply to: how to style wp_list_categoriesand i forgot to add this thing in front of the code:
global $post;
.Thanks;)
Forum: Fixing WordPress
In reply to: how to style wp_list_categoriesThank you for your help! I found these solutions with wp_get_post_terms:
Category1, Category2, Category3 display:
<?php $terms = wp_get_post_terms( $post->ID, 'materials'); $count = count( $terms ); $i = 0; $term_list = '<p class="my_term-archive">'; foreach ( $terms as $term ) { $i++; $term_list .= '<a href="' . get_term_link( $term ) . '" title="' . sprintf( __( 'View all post filed under %s', 'my_localization_domain' ), $term->name ) . '">' . $term->name . '</a>'; if ( $count != $i ) { $term_list .= ', '; } else { $term_list .= '</p>'; } } echo $term_list; ?>
and for Parent / Child1 / Child2 display:
<?php $terms = wp_get_post_terms( $post->ID, 'types', array( 'orderby' => 'term_id' ) ); $count = count( $terms ); $i = 0; $term_list = '<p class="my_term-archive">'; foreach ( $terms as $term ) { $i++; $term_list .= '<a href="' . get_term_link( $term ) . '" title="' . sprintf( __( 'View all post filed under %s', 'my_localization_domain' ), $term->name ) . '">' . $term->name . '</a>'; if ( $count != $i ) { $term_list .= ' / '; } else { $term_list .= '</p>'; } } echo $term_list; ?>
It was important to me that the terms are “clickable” and point to the archives page.
Forum: Fixing WordPress
In reply to: Categories or custom fields?wow, thanks. it works. I used this code to register the custom taxonomy
add_action( 'init', 'create_material_taxonomy' ); function create_material_taxonomy() { $labels = array( 'name' => 'Materials', 'singular_name' => 'Material', 'search_items' => 'Search Materials', 'all_items' => 'All Materials', 'edit_item' => 'Edit Material', 'update_item' => 'Update Material', 'add_new_item' => 'Add New Material', 'new_item_name' => 'New Material Name', 'menu_name' => 'Material', 'view_item' => 'View Material', 'popular_items' => 'Popular Materials', 'separate_items_with_commas' => 'Separate materials with commas', 'add_or_remove_items' => 'Add or remove materials', 'choose_from_most_used' => 'Choose from the most used materials', 'not_found' => 'No materials found' ); register_taxonomy( 'materials', 'post', array( 'label' => __( 'Material' ), 'hierarchical' => true, 'labels' => $labels, 'public' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, 'show_admin_column' => true, 'rewrite' => array( 'slug' => 'materials' ) ) ); }
I have also installed this plugin to filter multiple taxonomies: https://www.ads-software.com/plugins/search-filter
thank you very much! ??
Forum: Fixing WordPress
In reply to: Categories or custom fields?Thanks. Can I have both categories and custom taxonomies in a post? I use the default post type.
Forum: Fixing WordPress
In reply to: wp pagenavi plugin on a portfolio pagesorry, the code was so similar to my theme… but i think you could solve the problem by comparing the code I gave you with your template.
Forum: Fixing WordPress
In reply to: wp pagenavi plugin on a portfolio pagesorry, i’m doing it on my localhost server.
hm..I dont’have that file in my folder. is that the “artiste” theme?Forum: Fixing WordPress
In reply to: wp pagenavi plugin on a portfolio pagei changed the template-home.php (it lists your portfolio work)
Forum: Fixing WordPress
In reply to: wp pagenavi plugin on a portfolio pageOk, I think I’ve solved it. Replace the code with this one:
and don’t forget to install the wp-pagenavi plugin.
Forum: Fixing WordPress
In reply to: wp pagenavi plugin on a portfolio pagethe same template here and the same problem. you could change “‘posts_per_page’ => -1” to a number you want but don’t know how to add the pagination.
Anybody?