Making WordPress.org


Ignore:
Timestamp:
06/11/2021 05:39:41 AM (5 years ago)
Author:
dd32
Message:

Support: Attempt to use bbPress/WordPress search for support forums.

This is kind of ugly and not perfect, this is just to get it out there.

Searches from Plugin/Theme subforums should be limited to that plugin/theme forum.
Searches for support threads (without plugin/themes) should be limited to not-plugin/theme/review forums.
Searches from homepage or where it says 'Documentation' should be limited to HelpHub articles/Pages.

This is temporary, and as a result, the urls are not super pretty, but should suffice for the immediate need.

SEe #5771.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/search.php

    r11022 r11025  
    1414    <main id="main" class="site-main" role="main">
    1515
    16         <h1><?php single_cat_title(); ?></h1>
     16        <h1><?php printf( __( 'Search Results for %s' ), esc_html( get_query_var( 's' ) ) ); ?></h1>
    1717
    18         <div class="three-up helphub-front-page">
     18        <div class="search">
    1919            <?php
    2020            while ( have_posts() ) :
     
    2222            ?>
    2323
    24                 <a href="<?php echo esc_url( get_the_permalink() ); ?>" class="archive-block">
    25                     <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    26                         <?php the_title( '<h2>', '</h2>' ); ?>
     24            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     25                <a href="<?php echo esc_url( get_the_permalink() ); ?>" class="archive-block"><?php the_title( '<h2>', '</h2>' ); ?></a>
    2726
    28                         <?php the_excerpt(); ?>
    29                     </article>
    30                 </a>
    31 
     27                <?php the_excerpt(); ?>
     28            </article>
    3229
    3330            <?php endwhile; ?>
Note: See TracChangeset for help on using the changeset viewer.