是否可以把这个提问页面的模版发送给我?

1559675678 咨询讨论 175

1679543486839

 

是否可以把这个提问页面的模版发送给我?我也是用的相同的提问插件,但是我需要那个找寻答案的搜索框

回复

共1条回复 我来回复
  • 一为
    一为 评论

    行不行自己试

     

    <?php/*Template Name: 问答社区*/get_header();global $wp_query;?><div class="container my-4 my-md-5"><div class="row justify-content-lg-center"><div class="page-body col-12 col-lg-8"><?php if(!(isset($wp_query->query['post_type']) && $wp_query->query['post_type'] == 'qa_post') ): ?><div class="question-search mb-3"><h1 class="text-sm d-none"><?php echo get_the_title() ?></h1><form action="<?php echo home_url() ?>" method="get"><input type="hidden" name="post_type" value="qa_post"><div class="input-group"><input type="search" name="s" class="form-control pl-3" id="search-input" placeholder="找寻答案" required="" autocomplete="off"><div class="input-group-append"><button class="btn btn-danger pr-3" type="submit" id="s">立即查找</button></div></div><ul id="search_filtered" class="search_filtered" style="display: none"></ul></form></div><?php endif; ?><?php the_content();?></div><div class="sidebar col-12 col-lg-4 d-none d-lg-block"><?php if((isset($wp_query->query['post_type']) && $wp_query->query['post_type'] == 'qa_post') && current_user_can('level_10')): ?><?php  get_author_store_info() ?><?php else: ?><a class="btn btn-danger btn-block mb-4" href="<?php echo esc_url( get_permalink( io_get_option('submit_qa') ) ); ?>">发布新帖</a><a class="btn btn-danger btn-block mb-4" href="<?php echo esc_url( get_permalink( io_get_option('submit_ticket') ) ); ?>">提交工单</a><?php endif; ?><?php get_sidebar("question") ?></div></div></div><?php get_footer(); ?>
    1年前 0条评论
One Nav 导航主题