-
Hi !
If possible, I would like to improve 2 details in the search results pages:
1) Allow search in Tablepress plugin data
2) Allow the display of a short descriptionI do not know how to code in PHP, so I’m looking for someone who could help me modify the code of the search.php page of the Arcade theme.
Thank you !
<?php get_header(); ?> <div class="blog"> <div class="container"> <div class="row"> <div class="col-lg-12 col-md-12"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $showposts = get_option( 'posts_per_page' ); $args = array( 'post_type' => array( 'post', 'matches', 'team', 'page'), 'posts_per_page' => $showposts, 'paged' => $paged, 's' => get_search_query(), ); $new_query = new WP_Query($args ); ?> <?php if ( $new_query->have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php while ( $new_query->have_posts() ) : $new_query->the_post(); ?> <div class="blog-content wcontainer psearch-content"> <h2><a href="<?php the_permalink(); ?>"> <?php the_title(); ?> </a></h2> <?php echo esc_attr(get_post_type( get_the_ID() )); ?> </div> <!-- /.blog-post --> <?php endwhile; ?> <?php else : ?> <div class="psearch-content"> <h4 class="entry-title"><?php esc_html_e( 'Nothing Found', 'arcane' ); ?></h4> <p><?php esc_html_e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'arcane' ); ?></p> </div><!-- .entry-content --> <?php endif; ?> <div class="pagination"> <ul> <li> <?php $additional_loop = new WP_Query('showposts='.$showposts.'&paged='.$paged.'&s='.get_search_query().'&post_type=array(post,page,team,matches)' ); $page=$additional_loop->max_num_pages; echo arcane_kriesi_pagination($additional_loop->max_num_pages); ?> <?php wp_reset_postdata(); ?> </li> </ul> </div> <div class="clear"></div> </div> </div> </div> </div> <?php get_footer(); ?>
-
Please use the search before making a post. Your question maybe be already answered!
-
Do you need customization work? Are you having trouble installing Wordpress? Feeling lazy and want somebody else to do the hard work for you?
Join our discord!
Need hosting?
Follow us!