[wp-trac] [WordPress Trac] #29663: next_post_link & previous_post_link Category exclude broken
WordPress Trac
noreply at wordpress.org
Sun Sep 14 16:24:05 UTC 2014
#29663: next_post_link & previous_post_link Category exclude broken
--------------------------+------------------------------
Reporter: gabrieldiggs | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.0
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Description changed by ocean90:
Old description:
> Hello,
> As of WordPress 4.0 my custom next_post_link & previous_post_link is
> broken. My code is as follows:
>
> **********
> <?php next_post_link( '« %link', '%title', TRUE, '115' ); ?> |
> <?php previous_post_link( '%link »', '%title', TRUE, '115' ); ?>
> **********
>
> WordPress now ignores the excluded category (115) part of the code and
> shows all post regardless of category when clicking the next or previous
> post links. Everything was working before the upgrade to 4.0
New description:
Hello,
As of WordPress 4.0 my custom next_post_link & previous_post_link is
broken. My code is as follows:
{{{
<?php next_post_link( '« %link', '%title', TRUE, '115' ); ?> |
<?php previous_post_link( '%link »', '%title', TRUE, '115' ); ?>
}}}
WordPress now ignores the excluded category (115) part of the code and
shows all post regardless of category when clicking the next or previous
post links. Everything was working before the upgrade to 4.0
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29663#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list