Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
dragon
tagDiv Member
dragon
tagDiv Member
dragon
tagDiv Member

actually, I tried this as suggested on stackoverflow but I guess newspaper works in different way, It didn’t work.

// use template_redirect action:
add_action( ‘template_redirect’, ‘my_redirect_to_post’ );

/// Function to redirect from certain category pages to first post of those categories
function my_redirect_to_post() {
if (is_category(‘3’) || is_category(‘5’) ) {
$category = get_the_category();
$posts = query_posts(‘showposts=1&cat=’.$category[0]->cat_ID);
if(have_posts()) :
wp_redirect(get_permalink($post->ID));
endif;
}
}

dragon
tagDiv Member

Many thanks to @Ing Geek his solution solved both of the problems, my score is now increased to above %90!

Viewing 4 posts - 1 through 4 (of 4 total)