aristo lez
asked 7 years ago

I installed DW answer and question plugin, then set the questions page to my spesific page that i created.
But the DW content display outside the loop (above the footer).
My themes using framework to display the page file.
How to fix this?
php code for calling the page is:
$this->view->use_layout(‘header_’ . $layout . ‘_footer’)
            ->add_block(‘content’, ‘page/view’, array( ‘layout’ => $layout ));
php code for the page is:
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <div class=”blog layout_<?php echo $layout; ?>”>
        <div class=”blog_single_post” id=”post-<?php the_ID(); ?>”>
            <div class=”post”>
            
            <?php
                if ( get_post_meta( get_the_ID(), ‘_featured_video’, true ) ) {
                    global $wp_embed;
                    echo ‘<div class=”video”>’;
                    $post_embed = $wp_embed->run_shortcode(‘' . get_post_meta( get_the_ID(), '_featured_video', true ) . '‘);
                    echo $post_embed;
                    echo ‘</div>’;
                } else {
                    if ( !get_post_meta( get_the_ID(), ‘_disable_post_image’, true ) ) {
                        if ( has_post_thumbnail() && !get_post_meta( get_the_ID(), ‘_disable_post_image’, true ) ) {
                            the_post_thumbnail( ‘full’ );
                        }
                    }
                }
                the_content();
                
            ?>
            </div>
        </div>
    </div>
<?php endwhile; ?>

1 Answers
DominicStaff
answered 7 years ago

Hi,
Apologies for the delay in replying to you. We checked your site and unfortunately, your theme can’t be compatible with our plugin so that it will require lots of customization. We can help you as a custom work with a small fee if you are still interested in this. We will work during 2 hours and cost is $100 per hour. Let us know in case you want to have it for your site, my friend 🙂 

Powered by DW Question & Answer Pro