Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/20/2013 10:48:51 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Allow topics to replace the forum archive:

  • Add condition to bbp_parse_args() and add a specific query variable early, and use this variable in bbp_is_forum_archive().
  • Add condition to display_forum_archive() shortcode, to output topics if set.
  • Add forum archive check to bbp_has_topics(), to ensure pagination links are correct.
  • See #1500.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/topics/template-tags.php

    r4896 r4935  
    309309                $base = get_permalink();
    310310
     311            // Forum archive
     312            } elseif ( bbp_is_forum_archive() ) {
     313                $base = bbp_get_forums_url();
     314
    311315            // Topic archive
    312316            } elseif ( bbp_is_topic_archive() ) {
Note: See TracChangeset for help on using the changeset viewer.