Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter admazy

    (@admazy)

    *plugin version 1.2.0

    Hi websupporter,

    Is there a way to replace “#” in URL search parameters with “?” ?

    Thanks for a great plugin.

    Thread Starter admazy

    (@admazy)

    Hi,

    here is screenshot

    View post on imgur.com

    all i need is to see is all categories with hierarchy, so i will be able to add them to menu in same order

    Thanks

    how did you fix it?

    in my case it was a conflict with “RK Responsive Contact Form” plugin

    now the pagination and all status links is ok

    Thread Starter admazy

    (@admazy)

    here is what i have for now and it works on archive and single post pages (for my needs it’s showing related questions for similar taxonomy):

    <div class="dwqa-container dwqa-container-top">
    <div id="archive-question" class="dw-question">
    <div class="dwqa-list-question">
    <div class="questions-list" style="opacity: 1; display: block;">
    <?php
    //WordPress loop for custom post type
    $category = get_the_category();
    $firstCategory = $category[0]->cat_name;
    //echo $firstCategory;
    $args = array(
    				'post_type' => 'dwqa-question',
    				'dwqa-question_category' => $firstCategory,
    				'posts_per_page' => '-1',
    				 );
     $my_query = new WP_Query($args);
          while ($my_query->have_posts()) : $my_query->the_post(); ?>
    
            <article class="dwqa-question">
            <header class="dwqa-header">
                <?php if( current_user_can( 'edit_posts' ) ) { ?>
                    <?php if( dwqa_is_pending( $post_id ) ) { ?>
                    <span class="dwqa-label"><?php _e('Pending','dwqa') ?></span>
                    <?php } ?>
                <?php } ?>
                <?php if( dwqa_is_sticky($post_id) ){ echo '<i class="fa fa-bookmark"></i>'; }  ?>
                <a class="dwqa-title" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'dwqa' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"> <?php the_title(); ?></a>
                <div class="dwqa-meta">
                    <?php dwqa_question_print_status($post_id); ?>
                    <?php
                        global $authordata;
                        if( ! dwqa_is_anonymous($post_id) ) {
                            $author_link = sprintf(
                                '<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
                                get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
                                esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
                                dw_strip_email_to_display( get_the_author( ) )
                            );
                        } else {
                            $author_link = __('Anonymous','dwqa');
                        }
                        echo __('by','dwqa') . ' ' . $author_link;
                    ?>  <strong>⋅</strong>  <span><?php echo get_the_date(); ?></span>
                    <?php echo get_the_term_list( $post_id, 'dwqa-question_category', '  <strong>⋅</strong>  <span>Category: ', ', ', '</span>' ); ?>    
    
                    <?php do_action( 'dwqa_question_meta' ); ?>
                </div>
            </header>
            <footer class="dwqa-footer-meta">
                <div class="dwqa-view"><?php
                        $views = dwqa_question_views_count();
                        if( $views > 0 ) {
                            printf(
                                '<strong>%d</strong> %s',
                                $views,
                                _n( 'view', 'views', $views, 'dwqa' )
                            );
                        }else{
                            echo '<strong>0</strong> '.__('view','dwqa');
                        }
                    ?>
                </div>
                <div class="dwqa-comment">
                    <?php
                        $answer_count = dwqa_question_answers_count();
                        if( $answer_count > 0 ) {
                            printf(
                                '<strong>%d</strong> %s',
                                $answer_count,
                                _n( 'answer', 'answers', $answer_count, 'dwqa' )
                            );
                        } else {
                            echo '<strong>0</strong> '.__('answer','dwqa');
                        }
                    ?>
                </div>
                <div class="dwqa-vote">
                    <?php
                        $answer_vote = dwqa_vote_count();
                        if( $answer_vote > 0 ) {
                            printf(
                                '<strong>%d</strong> %s',
                                $answer_vote,
                                _n( 'vote', 'votes', $answer_vote, 'dwqa' )
                            );
                        } else {
                            echo '<strong>0</strong> '.__('vote','dwqa');
                        }
                    ?>
                </div>
            </footer>
        </article>
    
    <?php endwhile;  wp_reset_query(); ?>
    </div>
    </div>
    </div>
    </div>

    any fix?

Viewing 6 replies - 1 through 6 (of 6 total)