Does anyone have any insight or advice on how I can include pagination in my blog?
Thanks in advance!
]]>As it looks like there is a permalink problem. If i click on “next page” i recieve a 404 error due to wrong Link.
So it looks like category/2/page/2 but should look like /page/2. If i hover over the “next page” button i see the link category/2/.
Hope someone can help me.
I have few plugins installed:
Rank Math, Elementor, Cache enabler and Asset Cleanup.
On Settings/Permalink i have set to “Postname”
]]>before I switched to YOAST, I was using All in One SEO but I got some huge problems with it. There were incompatiblliys which made it impossible to further use this plugin.
Anyways, I’m facing a problem with pagnation on my website. Here the example:
Start: www.wildsolutions.at
Pagnation: www.wildsolutions.at/page/2
This /page/2 produces problems in regards of SEO: double content, double h1, double description, and so on.
With all in one SEO I was able to set a term to no follow/no index pagnation pages.
In YOAST I cannot find somthing similar.
Can you tell me how do you solve this problem?
Thanks in advance and regards,
Philip
Just noticed today that when performing a search query with the product manager page, the pagnation results don’t actually reflect that of the search results, but rather the total products for that ‘post status’.
Note that I’m using WC-Vendors as well.
Thanks!
]]>Thanks
My code is as follows:
<?php
/**
* Template Name: Blog
*/
get_header(); ?>
<div class="clear"></div>
</header> <!-- / END HOME SECTION -->
<div id="content" class="site-content">
<div class="container">
<div class="content-left-wrap col-md-9">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$wp_query = new WP_Query( array('post_type' => 'post', 'showposts' => '15', 'paged' => $paged) );
if( $wp_query->have_posts() ):
while ($wp_query->have_posts()) :
$wp_query->the_post();
get_template_part( 'content', get_post_format() );
endwhile;
endif;
zerif_paging_nav();
wp_reset_postdata();
?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .content-left-wrap -->
<div class="sidebar-wrap col-md-3 content-left-wrap">
<?php get_sidebar(); ?>
</div><!-- .sidebar-wrap -->
</div><!-- .container -->
<?php get_footer(); ?>
The “Older Posts” link brings up a 404 error page not found. Any help would be greatly appreciated.
]]>https://www.ads-software.com/plugins/woocommerce-grid-list-toggle/
]]>I have a custom post type setup as follows:
register_post_type( ‘howWeWork’,
array(
‘label’ => __(‘How We Work’),
‘singular_label’ => __(‘How We Work Item’, ‘theme1438’),
‘_builtin’ => false,
‘public’ => true,
‘show_ui’ => true,
‘show_in_nav_menus’ => true,
‘hierarchical’ => true,
‘capability_type’ => ‘page’,
‘menu_icon’ => get_template_directory_uri() . ‘/includes/images/icon_portfolio.png’,
‘rewrite’ => array(
‘slug’ => ‘how-we-work’,
‘with_front’ => FALSE,
),
‘supports’ => array(
‘title’,
‘editor’,
‘thumbnail’,
‘excerpt’,
‘custom-fields’,
‘comments’)
)
);
register_taxonomy(‘howWeWork_category’, ‘howWeWork’, array(‘hierarchical’ => true, ‘label’ => ‘HowWeWork Categories’, ‘singular_name’ => ‘Category’, “rewrite” => true, “query_var” => true));
}
add_action(‘init’, ‘my_post_type_howWeWork’);
And my query as such:
<?php $wp_query->query(“post_type=howWeWork&”. $catinclude .”&paged=”.$paged.’&showposts=12′); ?>
When it tries to load page 2 in url/how-we-work/page/2 I get the 404 error.
My permalink is setup as this:
/%catagory%/%postname%/
Thoughts? Right now I have removed the showposts=12 and set the default in WordPress to 99. But that will only last so long.
Thank you for looking.
]]>install plugins:
WP-PageNavi
WP Pagenavi Style
edit: index.php
find: (at bottom of page)
</div>
<!-- #content -->
add inline:
<span><?php wp_pagenavi(); ?></span>
looks like:
</article><!-- #post-0 -->
<?php endif; // end have_posts() check ?>
<span><?php wp_pagenavi(); ?></span></div>
<!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
edit: custom.css
Add:
.navigation {
display: none;
}
got to seetings: Wp Pagenavi Style
choose reqiured style
clear cache
]]>