New answers tagged

0

your missing a slash in your perma link structure it should be /%category%/%postname%


0

After debugging a long time even I got the solution regarding pagination issue Basically, In WordPress, you can't have a PAGE and a CUSTOM POST TYPE with the same name. If you do, the permalink rewrite rules will get confused and trigger a 404.


0

Work on this today, compatible wordpress 5.5.1 with bootstrap 4 : <?php $pagination = paginate_links( array( 'base' => str_replace( 999999999, '%#%', esc_url( get_pagenum_link( 999999999 ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), '...


1

I finally found a solution. Disable the redirect canonical function with: add_filter( 'redirect_canonical', '__return_false' ); And fix the 404 error that results from disabling the redirect canonical with this suggestion


0

When faced with this same requirement I opted to use a direct MySQL call to calculate which page the current post is on without retrieving and looping every post in this post_type. I went this route because I discovered it is much faster when working on a site with thousands of posts. This approach may also be put inside a function/method and determined from ...


1

Seems to be related to: WordPress stripping out "page" query parameter with 301 redirect. See Make WordPress Core ticket 50976: "We understand that it may be annoying for themes and plugins authors to fix their usage of this variable, but it would introduce a way more issues if it was changed on WordPress Core side. It's objectively better to ...


Top 50 recent answers are included