• Resolved cmonkee20

    (@cmonkee20)


    Hi,
    Excellent plugin.
    I placed the code <?php echo do_shortcode(‘[pt_view id=”xxxxxxxxx”]’); ?> in my index.php file right above the loop, <?php while ( have_posts() ) : the_post() ?> , and it works nice, but… it also still displays my original post loop. (All my posts show below in a list after the grid layout). I hope I’m explaining this right.

    Should I have deleted part of the loop? I’ve tried to comment sections out but then no posts show at all. It needs the whole loop to function.

    https://wordpress.org/plugins/content-views-query-and-display-post-page/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hi,
    It often contain both PHP & HTML code, so maybe you hadn’t comment in valid way.
    Backup that file, then delete all code from
    <?php while ( have_posts() ) : the_post() ?>
    to something like
    <?php endwhile;?>

    So all posts in original loop will be remove.

    Best regards,

    Thread Starter cmonkee20

    (@cmonkee20)

    Thanks for the response. You are officially the first developer to ever respond to a question I’ve posted. They’ve always gotten lost in time. Thank you!!!
    So, I actually solved my own problem with just using CSS and no plugin to make columns for my posts.

    But your plugin is lovely.

    The only reason I had to deactivate the plugin was because it had a mysterious conflict with my native header (H1, H2…) styles. I spent a day trying to figure it out but unfortunately had to deactivate it to restore the headers.

    Plugin Author Content Views

    (@pt-guy)

    Hi,
    Please open the bootstrap.min.css file in folder assets\bootstrap\css, replace it content by content from this
    https://gist.githubusercontent.com/ptguy/279b6615605e7f0a9d74/raw/3c5d4221b1798c1f4b83583af08db6430d5bf55c/bootstrap-mifinied.css

    and tell me if the problem is fixed.

    Best regards,

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

The topic ‘Duplicate posts?’ is closed to new replies.