Show category-ID in custom category-list

Try this: <div id=”category-list”> <ul class=”topnav”> <?php if (is_single()){ global $post; $pid = $post->ID; $post_categories = wp_get_post_categories( $post->ID ); $cats = array(); foreach($post_categories as $c){ $cat = get_category( $c ); $cats[] = $cat->ID; } $active_cat_count = true; $cat_count = 0; } $kategorien = get_categories(array( ‘child_of’ => 0, ‘exclude_tree’ => 15, ‘exclude’ => 16, ‘orderby’ => … Read more

determine if specific page is in list?

If you just need to remove, or ignore, it from $pages, use the exclude argument instead; $pages = wp_list_pages( array( ‘exclude’ => get_option( ‘page_on_front’ ), ‘child_of’ => $parent, ‘parent’ => $parent, ‘sort_column’ => ‘post_title’, ‘title_li’ => ”, ‘hierarchical’ => ‘0’ ) ); I’ve used wp_list_pages as I assume this is the function you’ve intended to … Read more

Which page is referring to *all posts by author*?

please refer to the codex: http://codex.wordpress.org/Template_Hierarchy#Author_display however, your problem is caused by a conflict of the .author class output by the body_class() and this existing style in custom.css: .author { float: left; margin-top: -3px; width: 219px; background: #E7ECEF; border-right: 1px solid #D6DFDC; height: 41px; cursor: pointer; } check why this style is added there in … Read more

Link to larger thumbnail in custom query (with custom post-types)

In your code you are linking to an image using this code: wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), “medium” ); So what you are doing is showing the medium sized image as well as linking to the medium image. What you need to do is link to the full sized image: wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), “full” ); … Read more