Hook into create_category

You could use the get_term_by() function: http://codex.wordpress.org/Function_Reference/get_term_by // get the category object $category = get_term_by( ‘id’, $category_id, ‘category’); // use the object to get your values $name = $category->name; $slug = $category->slug; Does this help?

How to get certain part from widget

You cannot separate the markup from the output in this widget. The links are built from the result of mlp_show_linked_elements(), so you can use that to create the elements with a custom function or a new widget. This will print the links to all connected pages: mlp_show_linked_elements( array( ‘link_text’ => ‘text’, ‘show_current_blog’ => TRUE ) … Read more

How to display custom taxonomy and terms using/creating plugin template

In the taxonomy-user_image_category.php the get_queried_object method will return the term object, which you can incorporate to your WP_Query. From top of my head, in your case it may look like this: $queried_object = get_queried_object(); $term_id = $queried_object->term_id; $args = array( ‘post_type’ => ‘user_images’, ‘post_status’ => ‘publish’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘sui_image_category’, ‘field’ => … Read more

Filter posts by author selected in page

You can write your own query to include or exclude posts from an Author, This page has documentation about the options you can pass to a query. http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters Here is an example to only get posts from the user $author. $author_query = new WP_Query(‘author_name=”.$author); for user “Amin’ : 🙂 $author_query = new WP_Query(‘author_name=Amin’);

Wp Pagenavi how to display all results

I replaced it with: $out .= $instance->get_single( 1, ‘first’, “All”, 100, 1 ); And I changed the get_single function, more exactly I added a parameter, “all”, and this one won’t afect anything else. function get_single( $page, $class, $raw_text, $format=”%PAGE_NUMBER%”, $all = 0 ) { if ( empty( $raw_text ) ) return ”; $text = str_replace( … Read more