Custom Post Type Dilema – How do I categorise by country?

There are essentially two distinct approaches to this: countries as terms associated natively as taxonomy information as taxonomy meta (needs table created, see Metadata API) front-end display as taxonomy categories or countries as custom post type associated with post relationships (needs plugin sich as Posts 2 Posts) information as post + custom fields front-end display … Read more

how to extract the username of the wordpress user?

This is what you are looking for: http://codex.wordpress.org/Function_Reference/get_currentuserinfo <?php global $user_identity; get_currentuserinfo(); ?> The username will be stored in the global variable $user_identity. If you are adding capabilities (I assume this is what is meant by ‘special authorities’) then it would make more sense to use the $user_ID global variable.

Display custom taxonomy attached to the post on post single page

You can get every Taxonomy by $categories = get_the_terms( get_the_id(), $taxonomy-slug ); if ( is_array( $categories ) ) { foreach ( $categories as $category ) { echo ‘<a href=”‘ . get_term_link( $category->term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in %s” ), $category->name ) . ‘” ‘ . ‘>’ . $category->name.'</a> ‘; … Read more

Remove custom taxonomy column from my custom post type columns

function wpse_80027_manage_columns($columns) { // remove taxonomy column unset($columns[‘taxonomy-YOUR_TAXONOMY_NAME’]); // prepend taxonomy name with ‘taxonomy-‘ // add your custom column $columns[‘CUSTOM_COLUMN_NAME’] = __(‘Column Name’); return $columns; } add_filter(‘manage_edit-sp_product_columns’, ‘wpse_80027_manage_columns’); function wpse_80027_add_img_column($name) { if(‘CUSTOM_COLUMN_NAME’ == $name) { // echo your image in ‘CUSTOM_COLUMN_NAME’ column echo ‘<img src=”https://wordpress.stackexchange.com/questions/80027/image-name.png />”; } } add_action(‘manage_sp_product_posts_custom_column’, ‘wpse_80027_add_img_column’);

Separate tags with semicolon

The tag delimiter is made translatable: $comma = _x( ‘,’, ‘tag delimiter’ ); So this can be changed with a simple filter: add_filter( ‘gettext_with_context’, ‘t5_semicolon_tag_delimiter’, 10, 4 ); function t5_semicolon_tag_delimiter( $translated, $text, $context, $domain ) { if ( ‘default’ !== $domain or ‘tag delimiter’ !== $context or ‘,’ !== $text ) return $translated; return ‘;’; … Read more