update to 1.2.8.7 and blog page doesn't work anymore -.-
-
WordPress version: 3.4.2
WordPress SEO version: 1.2.8.7*** before the update all used to work fine ***
I did this: i just uploaded Ypast – WP SEO plugin
I expected the plugin to do this: i have a custom “blog” page (i’ve created a template and a blog.php file) which show posts under a precise category in a page (and not in the home)
Instead it did this: now, if I turn Yoast WP SEO on, i can’t see my page as a blog, but i see only the blank page i use to show my custom blog page… i have to turn the plugin off to see my posts again…
here’s my blog.php code
PLEASE HELP ME!!!!
<!-- pagina creata da matteo per creare le blog page, copiata da index.php --> <!-- creata in base a https://www.wpbeginner.com/wp-tutorials/how-to-create-a-separate-page-for-blog-posts-in-wordpress/ --> <?php /* Template Name: Blog */ ?> <?php get_header(); ?> <?php if (is_category(get_option('boldy_portfolio')) || post_is_in_descendant_category( get_option('boldy_portfolio'))){?> <?php include (TEMPLATEPATH . '/portfolio.php'); ?> <?php } else {?> <!-- Begin #colLeft --> <div id="colLeft"> <!-- Begin .leftBox--> <div class="leftBox"> <!-- archive-title --> <?php if(is_month()) { ?> <div id="archive-title"> Browsing articles from "<strong><?php the_time('F, Y') ?></strong>" </div> <?php } ?> <?php if(is_category()) { ?> <div id="archive-title"> Browsing articles in "<strong><?php $current_category = single_cat_title("", true); ?></strong>" </div> <?php } ?> <?php if(is_tag()) { ?> <div id="archive-title"> Browsing articles tagged with "<strong><?php wp_title('',true,''); ?></strong>" </div> <?php } ?> <?php if(is_author()) { ?> <div id="archive-title"> Browsing articles by "<strong><?php wp_title('',true,''); ?></strong>" </div> <?php } ?> <!-- /archive-title --> <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('category_name=notizie'.'&posts_per_page=5'.'&paged='.$paged); query_posts( array ( 'posts_per_page' => 5 ) ); //call only posts under "notizie" category wp_reset_query(); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <!-- Begin .postBox --> <div class="postItem"> <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1> <div class="meta"> <?php the_time('M j, Y') ?> // by <span class="author"><?php the_author_link(); ?></span> // <?php the_category(', ') ?> // <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?> </div> <!-- managing "more" tag --> <?php global $more; $more = FALSE; ?> <?php the_content('Questo articolo continua. Leggi tutto...'); ?> <?php $more = TRUE; ?> </div> <!-- End .postBox --> <?php endwhile; ?> <?php $wp_query = null; $wp_query = $temp;?> <?php if (function_exists("emm_paginate")) { emm_paginate(); } ?> <!-- managing "last news" resumes list --> <h3>Le ultime Notizie</h3> <ul> <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('category_name=notizie'.'&showposts=8'.'&paged='.$paged); ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> <div class="navigation"> <div class="alignleft"><?php previous_posts_link('« Precedenti') ?></div> <div class="alignright"><?php next_posts_link('Successivi »') ?></div> </div> <?php $wp_query = null; $wp_query = $temp;?> <!-- finisce qui--> </div> <!-- End .leftBox--> </div> <!-- End #colLeft --> <?php get_sidebar(); ?> <?php }?> <?php get_footer(); ?>
Demo
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘update to 1.2.8.7 and blog page doesn't work anymore -.-’ is closed to new replies.