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.

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

using wp_tag_cloud with custom taxonomy

Is the normal behavior of wp_tag_cloud: it show all tags, not only the tags for a specific post, even if inserted in a singular page. However, that function has an option include that let you define the tags to include (must be comma separed list of tag ids). So, in your template file, pass that … Read more

2 custom post-type and 1 taxonomy

For jobs in Newyork: $query1 = new WP_Query( array(‘post_type’ => ‘job’,’city’=>’new-york’) ) For resumes in Newyork: $query2 = new WP_Query( array(‘post_type’ => ‘resume’,’city’=>’new-york’) ) Is this what you need ?

Get the taxonomy of the post

All I need is to find the taxonomy(ies) of post of a custom post type. It can output in any look or format and I can make it work That being the case, what you need is get_object_taxonomies() $taxonomies = get_object_taxonomies( ‘post’, ‘objects’ ); That will not give you the terms in the taxonomies. You … Read more

Custom taxonomy pagination

Drop your custom query and go back to the default loop. Never replace the main query on the home page or any kind of archive page with a custom query. Use pre_get_posts to alter the main query variables before the main query runs Your taxonomy archive page should look like this if ( have_posts() ) … Read more

Output unique taxonomy terms of posts inside a loop

Figured it out! $state_tax_args = array( ‘post_type’ => ‘products’, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘product-line’, ‘field’ => ‘slug’, ‘terms’ => $pl_slug // provided at page load ), ), ); $state_tax_query = new WP_Query( $state_tax_args ); // counter to build array $i=0; if ( $state_tax_query->have_posts()) { $state_term_list=”<select class=”form-control” id=”inputStateSelect” … Read more