Having issues with wordpress pagination with multiple categories

I did more research and found a plugin that corrects the pagination issues with multiple categories. To summarize, I am using using a plugin called WordPress Category Archive – www.wordpress.org/extend/plugins/wp-category-archive/ to display my category specific archive. There were some issues with pagination due to the year/month being included in the url. The Solution: A plugin … Read more

Getting 404 on taxonomy page

I’ve solved this for myself with rewrite rule. The story: I have “piece” custom post type, taxonomy “media_tag” with “m_audio” term and taxonomy “genre_tag” with “g_sacred”, “g_folk” etc. And I want to have an URL like /piece/audio/<genre> to access archives. So, now I have in my functions.php: add_filter( ‘rewrite_rules_array’, ‘my_insert_rewrite_rules’ ); function my_insert_rewrite_rules( $rules ) … Read more

Load posts into sidebar and paginate via ajax?

You need to wrap the nonce with quotes and instead of the_permalink() and the_title() use get_permalink() and get_the_title() so like this: <?php $args = array(‘posts_per_page’ => 1); $sidebar = new WP_Query($args); if ( $sidebar->have_posts() ) : while ( $sidebar->have_posts() ) : $sidebar->the_post(); ?> <div class=”story”> <a href=”https://wordpress.stackexchange.com/questions/76921/<?php the_permalink(); ?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a> </div> … Read more

Ajax pagination works only first and third time

@kennypu in stackoverflow saved my life with this: t’s because you’re changing the contents of #paginar, so what happens is the event on the links are getting cleared. depending on your jquery version, you can either use .live() or add the even to the #pagi-container instead: $(‘#pagi-container’).on(‘click’,’#paginar > a’,function() {… } my finished code is … Read more

How to let crawlers search paginated comments?

The reason of why Google doesn’t index paginated comments is because of an issue with the canonical URL in your header. You can learn more about the reason behind this in a comprehensive question that I posted earlier. There is an excellent solution posted there for paginated post pages. Now, for Google to index comment … Read more

Paginated Taxonomy Term Archive including one post per term

As discussed in chat and as @Rarst already told you, there’s no default WordPress way to accomplish Archive of multiple taxonomies and all their terms In fact there’s no way to accomplish Archive of single taxonomy and all its terms in WordPress. Simply because WordPress doesn’t do that – without custom SQL queries. But there’re … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)