Lose “Blog Archive” from page title

I just realized that you’re talking about the browser “title” at the top; that wasn’t clear from your original post Go into your header.php and at the top look for this line <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?> – <?php bloginfo(‘description’); ?> … Read more

Check child/parent categories if exists

You can get the current posts category outside the loop by using the get_the_category function. http://codex.wordpress.org/Function_Reference/get_the_category When you have the actual category ( however you got it) you can use get_categories, specifically the ‘child_of’ parameter and pass it the parent cat ID. http://codex.wordpress.org/Function_Reference/get_categories Also have a look at wp_list_catagories, http://codex.wordpress.org/Template_Tags/wp_list_categories#Display_or_Hide_the_List_Heading where you can do something … Read more

How do I Show ALL posts for Catagories and Tags?

Try this (add to your theme’s functions.php): function my_unlimited_posts_list( $vars ) { if ( isset($vars[‘category_name’]) || isset($vars[‘tag’]) ) $vars[‘posts_per_page’] = -1; return $vars; } add_filter( ‘request’, ‘my_unlimited_posts_list’ );

post-page: reference to parent page?

You can do that: //add reff to query vars to hold the referring page ID add_filter(‘query_vars’, ‘my_query_vars’); function my_query_vars($vars) { // add movies_view to the valid list of variables $new_vars = array(‘reff’); $vars = $new_vars + $vars; return $vars; } then add ?reff=<?php echo $post->ID; ?> to your “post’s detail” link and on your “post-detail.php” … Read more

Exclude newest post from category X but show rest

A while back i posted a simple function that gets latest post in a certain category: function get_lastest_post_of_category($cat){ $args = array( ‘posts_per_page’ => 1, ‘order’=> ‘DESC’, ‘orderby’ => ‘date’, ‘category__in’ => (array)$cat); $post_is = get_posts( $args ); return $post_is[0]->ID; } So once you have that function you can use use WP_Query or query_posts and using … Read more

Show info to author only

Just compare display names: $currentuser = get_currentuserinfo(); if ( get_the_author() == $currentuser->displayname ) { // current user is the post author; do something } The get_the_author() function returns displayname, which should be able to be compared against the displayname parameter that is a part of the $currentuser object.

previewing my posts on static page?

You will need to set a Static Page as your front page, create and assign a PHP Template for that page, and stack multiple Queries in the template to search out your required categories and display them. Here is one, you might have many: // get the last post (any date) from ‘Featured’ category $featured … Read more