I’m trying to create a slider that displays the post’s thumbnail, then theres a static navigation bar, then the content of the post.

I know you can break up the loop and insert static content in between posts, but what I’m trying to do is break up the actual output of the loop.

So the post would look like this:

Post Thumbnail (dynamic and slides)
Navigation bar (static)
Post Content (dynamic and slides)

Here is what I have:

<?php

$args = array( some args );
$the_query = new WP_Query( $args );

  //gather post post thumbnail and content

        ?>

          // output post thumbnail
          //output static navigation 
          //output post content

    <?php } 
          }     
      wp_reset_postdata();
     ?>
    // of course this doesn't work because the static content is in in the loop

Does anyone have any ideas?

Read more here: Break up Post Output


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: