Skip to:
Content

bbPress.org

Opened 8 months ago

#3358 new defect

[bbp-single-tag id=X] shortcode pagination is not working

Reported by: wpturk Owned by:
Milestone: Awaiting Review Priority: high
Severity: normal Version: 2.6.4
Component: General Keywords:
Cc:

Description

This is happening because of these lines in function bbp_get_topics_pagination_base:

<?php
.....
            // Topic tag
                } elseif ( bbp_is_topic_tag() ) {
                         $base = bbp_get_topic_tag_link();

              // Page or single post
               } elseif ( is_page() || is_single() ) {
                        $base = get_permalink();
...

Actually, our shortcode is in a page, but the if statement "elseif ( bbp_is_topic_tag()" turns true and the base link for paginations returns empty.

A possible solution is to put "is_page" statment before "bbp_is_topic_tag" than everything works fine.

<?php
.....

             // Page or single post
               } elseif ( is_page() || is_single() ) {
                        $base = get_permalink();

            // Topic tag
                } elseif ( bbp_is_topic_tag() ) {
                         $base = bbp_get_topic_tag_link();
...

Change History (0)

Note: See TracTickets for help on using tickets.