Opened 5 years ago
Closed 4 years ago
#3358 closed defect (bug) (fixed)
[bbp-single-tag id=X] shortcode pagination is not working
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6.7 | Priority: | high |
Severity: | normal | Version: | 2.1 |
Component: | Appearance - Theme Compatibility | 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(); ...
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 7175: